apache2 web server
sajan at parikh.io
Wed Apr 23 15:47:42 UTC 2014
On 04/23/2014 10:34 AM, Ian A Taylor wrote:
> apachectl configtest
> Syntax OK
> The server fffff.st-and.ac.uk
> works ok
> But I want to create a sub-directory
> I am not sure if sub-directory is the correct word to utilize here.
> But I want the web address
> to respond in a different way from fffff.st-and.ac.uk
Ah, okay. In that case, you're going about it incorrectly.
In the main VirtualHost or configuration for fffff.st-and.ac.uk, you
need to use the Alias directive like this;
Alias /qwert /home/qwert/ #(you might need to play with the trailing
That line will allow your main configuration to work as expected, but
for /qwert, it will use /home/qwert as the DocumentRoot. Meaning
fffff.st-and.ac.uk/qwert/somefile.jpg will pull from
/home/qwert/somefile.jpg while the rest of fffff.st-and.ac.uk will
operate normally using the standard config, which seems to be what
There's actually a whole section in the Apache documentation about URL
mapping, which is what you are trying to do. Creating a separate
VirtualHost for each URL path is not the way to go.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3195 bytes
Desc: S/MIME Cryptographic Signature
More information about the ubuntu-users