Page 1 of 1

virtualhost doesn't work on xampp 1.4.16

PostPosted: 07. October 2005 19:19
by stezzz
i'm new 2 this xampp, but in my first try with xampp it's just what i was looking for. always doing the lamp config over and over again, and already tried 2 make an shell script so the installation would be alot easier.
well nevermind about this.

I installed the stuff and made everything secure.
i copyed my backup webfiles and the vhost.conf (where i have my virtualhost settings in)
i just made a rule in my httpd.conf : Include vhost.conf
well when i try the dns names for my vhosts it just keep putting me 2 the xampp homepage, and i don't seem 2 get the vhost right.
But the vhosts worked perfectly on my older lamp configuration.

example of my vhost.conf:
Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /home/www/vhosts/
ServerAlias *
TransferLog /home/www/vhosts/
ErrorLog /home/www/vhosts/
DirectoryIndex index.php shoutboxhelp.php
Alias /errordocs/ /home/www/vhosts/
ErrorDocument 400 /errordocs/400.html
ErrorDocument 401 /errordocs/401.html
ErrorDocument 402 /errordocs/402.html
ErrorDocument 403 /errordocs/403.html
ErrorDocument 404 /errordocs/404.html


can somebody help me get this stuff working?
my webserver is now down for a week and i can't get this fixxed xD

PostPosted: 07. October 2005 23:19
by stezzz
hmmz stil no reply :S well i heard about xampp having virtual host problems, but well plz help me fix this.

i didn't change anything in the httpc.conf accept adding 1 line :
Include vhost.conf
and in the vhost.conf i already posted that.
so what is wrong in the virtual host that it doesn't work prob.?

PostPosted: 07. October 2005 23:38
by Wiedmann
i didn't change anything in the httpc.conf accept adding 1 line :
Code: Select all
Include vhost.conf

You mean:
Code: Select all
Include conf/vhost.conf


Code: Select all
DocumentRoot /home/www/vhosts/

This is a path on your Windows system?

PostPosted: 08. October 2005 00:31
by stezzz
no no, i installed a clean linuc debian 3.1 os.
and i put the vhost.conf in /opt/lampp/etc where httpd.conf also is located.

PostPosted: 08. October 2005 00:33
by stezzz
i see i have 2 use etc/vhost.conf
let me try if that works xD

PostPosted: 08. October 2005 00:36
by stezzz
sweet i have it fixxed xD

PostPosted: 08. October 2005 00:51
by Wiedmann
sweet i have it fixxed

Fine :-) How?

no no, i installed a clean linuc debian 3.1 os.

Next time you should use the Linux forum and not that one for Windows ;-)