Web Hosting Talk







View Full Version : Virtual site - user webpages...


Owlman
05-10-2002, 04:56 PM
I have a virtual domain, say, somedomain.com and I set up a user (mike) with 5MB of space.

I understand that he now has a POP3 box and all this works fine.

I check via FTP and yes, mike is set up as a user OK.

Whenever a new virtual site is created, the default index page says that users can access their web pages by:

http://www.somedomain.com/users/mike (in our case)

but this just leads to a 404 error. It must be something I have missed but I cannot find the answer on the searches.

A virtual pint of Guiness awaits the person who can help me.. :)

Sainthax
05-10-2002, 05:09 PM
try http://www.somedomain.com/~mike

Owlman
05-10-2002, 05:18 PM
Saint by name.... Excellent! :beer: Cheers!!

But where is this documented? I guess I missed it somewhere.

Thanks a lot!

psi
05-10-2002, 05:27 PM
God, I could do with a pint of Guinness right now.

Chicken
05-10-2002, 08:51 PM
Originally posted by Owlman
...but this just leads to a 404 error
http://www.somedomain.com/users/mike
http://www.somedomain.com/~mike

-both of these should work, in theory. If not, then something is ucked fup a bit. Check httpd.conf and make sure the virtual host has a line for mapping /users/<username> (I'm errrr... pretty sure that's where they do it, but if not, well then errrr... nothing will be there of course...)

psi
05-10-2002, 09:06 PM
Doh, a patch must have killed it. :bawling:


AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3

...should really be...

AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3