Page 1 of 1

httpd.conf Error

PostPosted: 08. July 2008 21:36
by Sekka
Hey,

I've just done a fresh install of xampp.

I went into the httpd.conf and entered the following at the end of the file,

Code: Select all
<VirtualHost kbw.stevepc:80>
   DocumentRoot "V:/Work/KBW/Website/Build.WD/"
   ServerName kbwweb
   ServerAdmin admin@somewhere.co.uk
   <Directory "V:/Work/KBW/Website/Build.WD/">
      Options Indexes FollowSymLinks
      AllowOverride FileInfo
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>


I then went into my windows host file and added,

Code: Select all
127.0.0.1   kbw.stevepc


When I restart apache (and it does start without leaving anything in the error log) any address I try to access, including the bog standard localhost xampp panel, gives me a server error.

I know it has something to do with my address 'kbw.stevepc' as 'localhost:2000' works.

Am I missing something or am I doing something I'm not allowed to?

Thanks.

PostPosted: 08. July 2008 21:53
by Wiedmann
gives me a server error.

Which one?

as 'localhost:2000' works.

How can this work? Because a normal XAMPP is not listening on port 2000.

PostPosted: 08. July 2008 21:56
by Sekka
Which one?

Error 500, hence my knowing its the config.

How can this work? Because a normal XAMPP is not listening on port 2000.

Well, I added a listen for 2000. Sorry, forgot to mention that.

The reason this is bugging me so much is I did pretty much the exact same thing at work and it worked. But not at home. Hrm.

PostPosted: 08. July 2008 23:15
by Wiedmann
Error 500, hence my knowing its the config.

An error 500 must log something in the "error.log" with a detailed description about the error.

PostPosted: 08. July 2008 23:27
by Sekka
Sorted. Cheers.

Was an error in a .htaccess I didn't know it was pointing to.