<div dir="ltr">Apologies in the end it turned out to be Wordpress! Live and learn eh?<br><br>Thanks for the help all<br><br><div class="gmail_quote">On Thu, Aug 28, 2008 at 3:43 PM, william pink <span dir="ltr"><<a href="mailto:will.pink@gmail.com">will.pink@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It appears the Alias isn't working, the module mod_alias is enabled though.<br>
<br>
I changed it to /test and this appeared in my Apache log file<br>
<br>
File does not exist: /var/www/example/test<br>
<br>
so it narrows it down but I then haven't got a clue what could be<br>
causing mod_alias not to work.<br>
<br>
Thanks guys,<br>
<br>
Will<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
On 8/28/08, Progga <<a href="mailto:proggaprogga@gmail.com">proggaprogga@gmail.com</a>> wrote:<br>
> On Thu, Aug 28, 2008 at 03:03:59PM +0100, william pink wrote:<br>
>><br>
>> File does not exist: /var/www/foo/example<br>
>><br>
>> But of course I want it to point at /var/www/example<br>
>><br>
>> Heres my VH config for that part now<br>
>><br>
>> Alias /example/ /var/www/example<br>
>> <Directory /var/www/example><br>
>> Order allow,deny<br>
>> Allow from all<br>
>> </Directory><br>
>><br>
>> But looking at the Apache docs that appears to be the right way of doing<br>
>> it?<br>
><br>
> Here's an example from the Apache doc<br>
> (<a href="http://httpd.apache.org/docs/2.2/mod/mod_alias.html" target="_blank">http://httpd.apache.org/docs/2.2/mod/mod_alias.html</a>) :<br>
><br>
> Alias /image /ftp/pub/image<br>
> <Directory /ftp/pub/image><br>
> Order allow,deny<br>
> Allow from all<br>
> </Directory><br>
><br>
> It also says:<br>
> Note that if you include a trailing / on the url-path then the server<br>
> will<br>
> require a trailing / in order to expand the alias. That is, if you use<br>
><br>
> Alias /icons/ /usr/local/apache/icons/<br>
><br>
> then the url /icons will not be aliased.<br>
><br>
><br>
> At least the following from your httpd.conf should work:<br>
><br>
>> >> Alias /doc/ "/usr/share/doc/"<br>
>> >> <Directory "/usr/share/doc/"><br>
>> >> Options Indexes MultiViews FollowSymLinks<br>
>> >> AllowOverride None<br>
>> >> Order deny,allow<br>
>> >> Deny from all<br>
>> >> Allow from <a href="http://127.0.0.0/255.0.0.0" target="_blank">127.0.0.0/255.0.0.0</a> ::1/128<br>
>> >> </Directory><br>
><br>
><br>
> HTH<br>
><br>
><br>
> --<br>
> Gllug mailing list - <a href="mailto:Gllug@gllug.org.uk">Gllug@gllug.org.uk</a><br>
> <a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a><br>
><br>
</div></div></blockquote></div><br></div>