How can i connect to my xampp server at port 80

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How can i connect to my xampp server at port 80

Postby alattal » 09. February 2009 10:11

Good evening , i just have a question about connecting to my xampp server at port 80 ..
i am using xampp as a local server and i registered to it a domain from dyndns.org ..
the domain is; http://dls.dontexist.com/
i can access my site and i can also download from it , but i can't download from it by remote upload
example , this is a link to a file in my xampp server that i want to download ;
http://dls.dontexist.com/webdav/Opera_963_in_Setup.exe
i can download it directly ; but if i want to download it through a site that support remote upload ..
like sites that using rapidleech script ; it fail and said Couldn't connect to my xampp server at port 80 ..
so How can i connect to my xampp server at port 80 ?
alattal
 
Posts: 12
Joined: 23. January 2009 20:52

Re: How can i connect to my xampp server at port 80

Postby Izzy » 09. February 2009 10:39

I am not sure I understand what you are trying to do here.

I can't seem to find a server at the end of the links you posted - how can you download direct?

Do a forum search for vhost or virtualhost, you can use my name Izzy in the Author box, and see if there is anything in the many results and working examples that would seem to fit your needs - I believe you would need to set up a virtualhost for your domain name and that is configured in the xampp\apache\conf\extra\httpd-vhosts.conf file.

Make sure that you have configured the DynDNS domain to go to your Internet IP address, the one you get from your ISP.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: How can i connect to my xampp server at port 80

Postby alattal » 09. February 2009 11:00

first i am sorry i can't understand all of your post , i am using google translation to translate to my language ..
Izzy wrote:how can you download direct?

I download directly by copying the download link and paste it in my download program like Internet Download Manager ..
Izzy wrote:I can't seem to find a server at the end of the links you posted -
Make sure that you have configured the DynDNS domain to go to your Internet IP address, the one you get from your ISP.

are you mean that you can't access my site ? is it not working ?
alattal
 
Posts: 12
Joined: 23. January 2009 20:52

Re: How can i connect to my xampp server at port 80

Postby Wiedmann » 09. February 2009 11:19

are you mean that you can't access my site ? is it not working ?

Of course not. "dls.dontexist.com" points to "192.168.1.2", which can't work. Because it's a local test IP and not available in the internet.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: How can i connect to my xampp server at port 80

Postby Izzy » 09. February 2009 11:27

i am using google translation to translate to my language
That must be most difficult for you and also very slow but not much I can do for you on that score.


Your site at http://dls.dontextist.com does not connect to a web server.

To check your self go to the link below and type in dls.dontexist.com in the box and tick the service scan box and the traceroute box and you should see the server on your XAMPP Apache server - but unless Apache in XAMPP is configured correctly and your DynDNS domain name points to your ISP provided IP address then you will see only your local IP 192.168.1.2 and no server.
http://70.84.211.98/co/DomainDossier.aspx

To test the above link type in apachefriends.org and see what it should look like if there was a server at your domain name.

You will have to also make sure that your port 80 is open in your router and forwarded if you have one and also in your firewall or nothing will get through from the Internet to your web sever.


In a default XAMPP installation Apache is setup to work a http://localhost using port 80.

You have to create a virtual host for your domain name to access the Apache server on port 80 from the Internet using your domain name.

Here is an example to get you started that you may use by copy and pasting it into the httpd-vhosts.conf file after all the commented content and changing what ever you need for your own paths except the localhost section.

Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName dls.dontexist.com
DocumentRoot "C:/mywebsite"
<Directory "C:/mywebsite" >
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Your website can be in any folder you like on your PC so just change those lines C:/website to where ever your website is.

Save the file and restart Apache.

Then you should be able to ho to http://dls.dontextist.com and see your website.

Have a go and see how it goes and let me know or paste back your httpd-vhost.conf file if you can't get it to work along with any error messages.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: How can i connect to my xampp server at port 80

Postby alattal » 09. February 2009 12:02

thank you Wiedmann and also you Izzy ..
Izzy wrote:Here is an example to get you started that you may use by copy and pasting it into the httpd-vhosts.conf file after all the commented content and changing what ever you need for your own paths except the localhost section.

Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName dls.dontexist.com
DocumentRoot "C:/mywebsite"
<Directory "C:/mywebsite" >
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Your website can be in any folder you like on your PC so just change those lines C:/website to where ever your website is.

Save the file and restart Apache.

Then you should be able to ho to http://dls.dontextist.com and see your website.

Have a go and see how it goes and let me know or paste back your httpd-vhost.conf file if you can't get it to work along with any error messages.


this is the httpd-vhost.conf file after edited , please let me knew if it wrong ..
Code: Select all
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
##    ServerAdmin webmaster@dummy-host.example.com
##    DocumentRoot /www/docs/dummy-host.example.com
##    ServerName dummy-host.example.com
##    ServerAlias www.dummy-host.example.com
##    ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
##    CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
##</VirtualHost>

##<VirtualHost *:80>
##    ServerAdmin webmaster@dummy-host2.example.com
##    DocumentRoot /www/docs/dummy-host2.example.com
##    ServerName dummy-host2.example.com
##    ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
##    CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>


NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName dls.dontexist.com
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs" >
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

alattal
 
Posts: 12
Joined: 23. January 2009 20:52

Re: How can i connect to my xampp server at port 80

Postby Wiedmann » 09. February 2009 12:12

[quote]In a default XAMPP installation Apache is setup to work a http://localhost using port 80.
...
You have to create a virtual host for your domain name to access the Apache server on port 80 from the Internet using your domain name./quote]
Just to clarify this:
There is no need to setup VHosts, if you want connect to XAMPP from the internet (This works also out of the box with the XAMPP default settings).
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: How can i connect to my xampp server at port 80

Postby Izzy » 09. February 2009 12:18

Izzy wrote:changing what ever you need for your own paths except the localhost section.
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
</VirtualHost>

This is correct and as I said above it should not be changed if your DocumentRoot in the xampp\apache\conf\httpd.conf file is "C:/xampp/htdocs" - you did not change this did you?

The rest looks fine and is needed if your website is outside of the htdocs folder.

EDIT
What's going on here!!!
You edited your post as you had C/xampp/webdav as your DocumentRoot before you edited your post and if you use the htdocs folder then as is pointed out you don't need a vhost at all.
This link also mentions the webdav folder:
http://dls.dontexist.com/webdav/Opera_963_in_Setup.exe
Last edited by Izzy on 09. February 2009 12:36, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: How can i connect to my xampp server at port 80

Postby alattal » 09. February 2009 12:34

Izzy wrote:This is correct and as I said above it should not be changed if your DocumentRoot in the xampp\apache\conf\httpd.conf file is "C:/xampp/htdocs" - you did not change this did you?
The rest looks fine and is needed if your website is outside of the htdocs folder.

no i didn't change htdocs folder ..
this is all the informations ..
the xampp folder in C:/xampp/
the htdocs folder in C:/xampp/htdocs
the webdav folder in C:/xampp/webdav
i want to use the webdav folder .. is it will be like this ..
Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "C:/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
    ServerName dls.dontexist.com
    DocumentRoot "C:/xampp/webdav"
    <Directory "C:/xampp/webdav" >
    Options Indexes +FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
</VirtualHost>

Last edited by alattal on 09. February 2009 13:07, edited 1 time in total.
alattal
 
Posts: 12
Joined: 23. January 2009 20:52

Re: How can i connect to my xampp server at port 80

Postby alattal » 10. February 2009 13:07

thank you Wiedmann and thank you Izzy its work :wink:
alattal
 
Posts: 12
Joined: 23. January 2009 20:52


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 79 guests