Xampp: the internet

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

Xampp: the internet

Postby Inuyasha4Ever » 13. January 2006 22:57

Hi all,

I have a question:
My webserver, based on Xampp, is accessible from the internet. Someone has to put in my ip and they are on my server. But they see the orange page
of Xampp. I know that I can change the rootdir but when i access xampp through localhost, I won't get the orange homepage of Xampp, will I?.

How can I change the options that I can acces the orange homepage from localhost, and that others will see just my homepage, and not from Xampp?

Many thnx in advance :D
Inuyasha4Ever
 
Posts: 3
Joined: 13. January 2006 22:48

Re: Xampp: the internet

Postby keisko » 14. January 2006 02:14

Inuyasha4Ever wrote:Hi all,

I have a question:
My webserver, based on Xampp, is accessible from the internet. Someone has to put in my ip and they are on my server. But they see the orange page
of Xampp. I know that I can change the rootdir but when i access xampp through localhost, I won't get the orange homepage of Xampp, will I?.

How can I change the options that I can acces the orange homepage from localhost, and that others will see just my homepage, and not from Xampp?

Many thnx in advance :D


Move all files from c:\xampp\htdocs to whatever you want.. e.g. to c:\xampp\orangepage
open httpd-xampp.conf file and add an alias for orangepage
e.g.
Code: Select all
 Alias /orangepage "c:/xampp/orangepage/"
    <Directory "c:/xampp/orangepage">
       Allow from localhost
    </Directory>


Put your homepage files to c:\xampp\htdocs..

That's all..
http://yourip/orangepage <--- your orange page
http://yourip <--- your homepage
keisko
 
Posts: 44
Joined: 31. January 2005 18:44

Postby WorldDrknss » 14. January 2006 04:00

you could sign up with www.dyndsn.org to get a free domain, then head over to http://www.worlddrknss.blogdns.org and read all the tutorials which get you up and running smoothly. I also advise that you read the forums for a cleaner way for adding virtualhost.

http://www.worlddrknss.blogdns.org
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40

Re: Xampp: the internet

Postby Inuyasha4Ever » 14. January 2006 08:08

keisko wrote:
Inuyasha4Ever wrote:Hi all,

....



Move all files from c:\xampp\htdocs to whatever you want.. e.g. to c:\xampp\orangepage
open httpd-xampp.conf file and add an alias for orangepage
e.g.
Code: Select all
 Alias /orangepage "c:/xampp/orangepage/"
    <Directory "c:/xampp/orangepage">
       Allow from localhost
    </Directory>


Put your homepage files to c:\xampp\htdocs..

That's all..
http://yourip/orangepage <--- your orange page
http://yourip <--- your homepage


But when someone from the internet types in my IP (e.g. http://myip/orangepage), will they see the main screen of Xampp then?
Inuyasha4Ever
 
Posts: 3
Joined: 13. January 2006 22:48

Re: Xampp: the internet

Postby keisko » 14. January 2006 14:50

Inuyasha4Ever wrote:
keisko wrote:
Inuyasha4Ever wrote:Hi all,

....



Move all files from c:\xampp\htdocs to whatever you want.. e.g. to c:\xampp\orangepage
open httpd-xampp.conf file and add an alias for orangepage
e.g.
Code: Select all
 Alias /orangepage "c:/xampp/orangepage/"
    <Directory "c:/xampp/orangepage">
       Allow from localhost
    </Directory>


Put your homepage files to c:\xampp\htdocs..

That's all..
http://yourip/orangepage <--- your orange page
http://yourip <--- your homepage


But when someone from the internet types in my IP (e.g. http://myip/orangepage), will they see the main screen of Xampp then?


Nope..
Allow from localhost that means only localhost have access to this area.. you may change it deny from all command.. or allow from yourip
keisko
 
Posts: 44
Joined: 31. January 2005 18:44

Postby Inuyasha4Ever » 14. January 2006 14:54

Let's say it a different way.
When i go to my localhost, i am directed to de xampp main page. That allrigt cause i can change the options from there. But when someone from the internet browses to my ip, they get directed to the Xampp main page the same way.

How can i change the options in such a way, that i am able to acces the xampp main page through the localhost, and that someone else will see my homepage and is not able to see my xampp main page, but only MY homepage?
That he also can't put a dir behind my ip to se the xampp mainpage, like
http://myip/xampp
He should not be able to do that.
Who knows the answer?
Inuyasha4Ever
 
Posts: 3
Joined: 13. January 2006 22:48

Postby WorldDrknss » 14. January 2006 21:38

in your httpd.conf file scroll down intill you see DocumentRoot "C:/xampp/xampp/htdocs" maybe a different location
below that you will see
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
you will need to change Deny to Allow so it looks like:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

and you virtualhost should be similar to this:

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot C:/www/thegamerslounge
ServerName thegamerslounge.game-host.org
ServerAlias www.thegamerslounge.game-host.org
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:/www/howto
ServerName worlddrknss.blogdns.org
ServerAlias www.worlddrknss.blogdns.org
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:/xampp/xampp/htdocs
ServerName localhost
</VirtualHost>

http://www.worlddrknss.blogdns.org <--XAMPP Tutorials
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 200 guests