bebbet Posted May 31, 2005 Report Share Posted May 31, 2005 i try to make this <VirtualHost *> VirtualDocumentRoot "/www/domains/%-2.0.%-1.0/"</VirtualHost> after a hour of coding, i made apache not to crash when started.. and still it doesn't work it should do:request: www.bebbet.nlresult:/www/domains/bebbet.nl/ i want:request:1234.bebbet.nl/dir/filename.extresult:/www/domains/bebbet.nl/1234/dir/filename.ext 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 Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 31, 2005 Report Share Posted May 31, 2005 First of, all you have in the VirtualHost section is just the VirtualDocumentRoot? how do you expect it to work? Second, why didn't you just use the script you used here before: http://forum.uniformserver.com/index.php?showtopic=25 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> #------ <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 </VirtualHost> 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... Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.