[Gllug] VirtualHost on Apache 1.3.31 problem
Richard Turner
richard at zygous.co.uk
Fri Mar 18 14:42:02 UTC 2005
On Fri, 2005-03-18 at 14:32 +0000, N.Pauli wrote:
> Dear All,
>
> This one has got me completely going around in circles. I'm trying to
> set up VirtualHosts on the Apache 1.3.31 server on my workstation.
> Browsing to http://localhost brings up the page I've left there but
> http://localhost/sjweb/ gives me 404 Not Found. I've had this working
> before on Apache 1.3.x using this configuration.
>
> NameVirtualHost localhost
> <VirtualHost localhost>
> ServerAlias localhost
> DocumentRoot /var/www
> </VirtualHost>
> <VirtualHost localhost>
> ServerAlias sjweb
> ServerName sjweb
> DocumentRoot /home/nbp/Web/SJweb
> ErrorLog /home/nbp/Web/SJweb/logs/error_log
> </VirtualHost>
Um, if http://localhost -> /var/www then http://localhost/sjweb -
> /var/www/sjweb, hence 404.
Configure DNS so that 'sjweb' is an alias to your workstation and this
config will work when you try http://sjweb/ (at least, I think it will,
I'm no expert!)
Presumably you could set a symlink from /var/www/sjweb -
> /home/npb/Web/SJWeb too, never tried. You'll have to make sure all the
filesystem permissions are set correctly, but you'll know when that's
the problem because you'll start seeing 'Permission Denied' instead of
'Not Found'.
Cheers,
Richard.
--
"Racing turtles, the grapefruit is winning..."
B53 8184 E61F 3604 FBF3 4CCB EF07 2942 30F2 739E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050318/633826a1/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list