Jump to content


[apache] VirtualDocumentRoot

  • Please log in to reply
1 reply to this topic

#1 bebbet



  • Member
  • Pip
  • 6 posts

Posted 31 May 2005 - 10:33 AM

i try to make this

<VirtualHost *>
VirtualDocumentRoot "/www/domains/%-2.0.%-1.0/"

after a hour of coding, i made apache not to crash when started..

and still it doesn't work :D

it should do:

i want:

who can help me?

i activated
LoadModule vhost_alias_module modules/mod_vhost_alias.so
(i installed apache2, then copied the file)

help me please

#2 olajideolaolorun


    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 31 May 2005 - 11:45 AM

First of, all you have in the VirtualHost section is just the VirtualDocumentRoot? how do you expect it to work? :D

Second, why didn't you just use the script you used here before: http://forum.uniform...hp?showtopic=25 :D

Thrid here is the code:

<VirtualHost *>
   ServerAdmin webmaster@bebbet.nl
   DocumentRoot /www/domains/bebbet.nl
   ServerName www.bebbet.nl
   ErrorLog logs/bebbet.nl-error_log
   CustomLog logs/bebbet.nl-access_log common


<VirtualHost *>
   ServerAdmin webmaster@1234.bebbet.nl
   DocumentRoot /www/domains/bebbet.nl/1234
   ServerName 1234.bebbet.nl
   ErrorLog logs/1234.bebbet.nl-error_log
   CustomLog logs/1234.bebbet.nl-access_log common

Try that, make sure that the domain names are set to go to your ip on the pc that the server is on or you can use the vhost script here to make the virtual host...

Put that code in the httpd.conf file, just that code alone, nothing added and test it... make sure the domain is also pointing to the server or edit your windows host file to redirect all calls to localhost...

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users