Jump to content
The Uniform Server Community

[apache] VirtualDocumentRoot


Recommended Posts

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

Link to comment
Share on other sites

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.uniformserver.com/index.php?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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...