Problems Virtual Host [HELP]

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

Problems Virtual Host [HELP]

Postby 3Xploit » 26. August 2006 23:22

problems with virtualhost.
Image

Image


#
# 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 85.17.45.89: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 85.17.45.89:80>
ServerAdmin webmaster@bluedivx.net
DocumentRoot /opt/lampp/htdocs/www
ServerName bluedivx.net
ServerAlias www.bluedivx.net
ErrorLog logs/bluedivx.net-error_log
CustomLog logs/bluedivx.net-access_log common
</VirtualHost>

NameVirtualHost trackerload.net:80

<VirtualHost 85.17.45.89:80>
ServerAdmin webmaster@trackerload.net
DocumentRoot /opt/lampp/htdocs/trackerload
ServerName trackerload.net
ServerAlias www.trackerload.net
ErrorLog logs/trackerload.net-error_log
CustomLog logs/trackerload.net-access_log common
</VirtualHost>

NameVirtualHost goldenice.org:80

<VirtualHost goldenice.org:80>
ServerAdmin jestom@goldenice.org
DocumentRoot /opt/lampp/htdocs/golden
ServerName www.goldenice.org
# ServerAlias www.dummy-host.example.com
ErrorLog /opt/lampp/htdocs/goldenice.org-error_log
CustomLog logs/goldeince.org-access_log common
</VirtualHost>

NameVirtualHost divxgame.com:80

<VirtualHost www.divxgame.com:80>
ServerAdmin jestom@divxgame.com
DocumentRoot /opt/lampp/htdocs/divxgame
ServerName www.divxgamae.com
# ServerAlias www.dummy-host.example.com
ErrorLog /opt/lampp/htdocs/divxgame.com-error_log
CustomLog logs/divxgame.com-access_log common
</VirtualHost>


Thanks in advance i`m so desperate i don`t know why i get this err i tried almos everything i know so please if someone knows what`t the problem or at least have any clues please reply thanks guys
3Xploit
 
Posts: 7
Joined: 26. August 2006 23:04

re:

Postby kulgan » 27. August 2006 20:08

do you have xampp for linux installed on a virtual linux OS in Windows?

Isn't in better to just install xampp for windows, since you are running windows anyways? If that's completely wild, please let me know...
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby 3Xploit » 28. August 2006 10:24

Well i can`t install it for windows because i have a dedicated server running in with Debian linux O.S so i can`t install it for windows because my server is running on an linux based O.S and i controll it with puttty from my home ... i live in spain and the server is in Nederland i login into the root account and control the server with putty if you can give a hand with my vhost problem thanks in advance .. Cheers 3xploit
3Xploit
 
Posts: 7
Joined: 26. August 2006 23:04

Postby kulgan » 28. August 2006 12:27

nope, sorry, can't help you there - I'm not that advanced :P
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby Izzy » 01. September 2006 11:00

So try this - change to:
NameVirtualHost *:80

Change all to:
<VirtualHost *:80>

delete:
NameVirtualHost trackerload.net:80
NameVirtualHost goldenice.org:80
NameVirtualHost divxgame.com:80

Save and restart Apache.

-------------------------------------------

Or you can do it this way:

NameVirtualHost 85.17.45.89:80

Change all to:
<VirtualHost 85.17.45.89:80>

delete:
NameVirtualHost trackerload.net:80
NameVirtualHost goldenice.org:80
NameVirtualHost divxgame.com:80

Save and restart Apache.

Good Luck :)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby 3Xploit » 01. September 2006 15:35

Image

Image

Image

#
# 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 85.17.45.89: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 85.17.45.89:80>
ServerAdmin webmaster@goldenice.org
DocumentRoot /opt/lampp/htdocs
ServerName goldenice.org
ServerAlias www.goldenice.org
ErrorLog logs/goldenice.org-error_log
CustomLog logs/goldenice.org-access_log common
</VirtualHost>


Hi first of all Izzy and others thanks for helping me out or trying to help me . Izzy i done everything like you said and i get no error with the Vhost, here`s the snapshot and the httpd-vhosts.conf. I think it`s ok, but my problem now is that i can`t access the Vhost from my Web browser i put in the Vhost adress like www.goldenice.org and nothing i get the same error page not found . I tried to fix it reading the other Vhost Topic so i reinstalled xampp without the security options on and i reconfigured again the httpd-vhosts.conf but i get the same page not found error.Thanks for reading this and i hope someone can help me out and please excuse my bad english .Bye 3xploit.
3Xploit
 
Posts: 7
Joined: 26. August 2006 23:04

Postby Izzy » 01. September 2006 17:55

Hi Norma,
You need to set your nameservers at your domain name registrar for the domains you want to access from the Internet, just like you did for the main domain name that uses 85.17.45.89 = fandivx.net

goldenice.org
ns1.nameserver.tld
ns2.nameserver.tld



Then you need to have a DNS Zone File Record entry for each of the domains you want to access from the Internet. Again just like you have for fandivx.net.

I use zoneedit.com which has the first 5 domains for free. I use the nameservers that are provided by ZoneEdit to tell my domain name registrar what they are by filling in their form on their control panel. Most registrars have a control panel that you can use to administer your domain name.

Each Virtual Host that is served by your XAMPP server must have their domain name resolve. This is how, when you type an address in the web browser, it can find your Virtual Host domain name. Treat each Virtual Host Domain Name just like you did when you set up fandivx.net.

Code: Select all
NameVirtualHost 85.17.45.89: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 85.17.45.89:80>
ServerAdmin webmaster@goldenice.org
DocumentRoot /opt/lampp/htdocs
ServerName goldenice.org
ServerAlias www.goldenice.org
ErrorLog logs/goldenice.org-error_log
CustomLog logs/goldenice.org-access_log common
</VirtualHost>

This is now correct and all you need to do now is add your other Virtual Host Containers for your other domain names but don't add another NameVirtualHost 85.17.45.89:80 in between each container.

All the domain names must have a DNS record and must have the nameservers set at the domain name registrar.

Remember that once you have set all the nameservers at your domain name registrar for each of your domains that you use in a Virtual Host Container, that it can take up to 48 hours for them to propagate the Internet, again just like it did when you did the same for fandivx.net.

I hope this has cleared things up a bit for you. :)


Off topic but have you tried WinScp. Putty integrates with it and you may find it easier to edit files on your server after you have got to know how to use it. I highly recommend it for Windows to Linux SCP or SFTP and for manipulating the files on the server. Multilingual and free too. ;)
http://www.winscp.org/
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Thanks

Postby 3Xploit » 01. September 2006 19:37

Well you helped me alot many many thanks and you`re a great person best wishes from spain . If i can help you with anything just let me know

Pd: I will try your recommendation WinScp thanks for mention it . :wink:
3Xploit
 
Posts: 7
Joined: 26. August 2006 23:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 28 guests