You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nikolai Lusan <ni...@hitwise.com> on 2007/04/26 04:02:25 UTC

[users@httpd] Alias directive not being honored

Greetings,

Not sure if anyone has seen anything similar to this one ...

I have a number of Alias directives in place to allow access to files in
a part of the filesystem outside the DocumentRoot. However one of these
has mysteriously stopped working and it is produceing 404 errors on the
alias under the webroot ...

I have a setup like this in the VirtualHost

DocumentRoot /path/to/codebase/public_html
Alias /news/ /path/to/codebase/newsletters/


When a request is made to http://mysite.com/news/filename.html the error
log is repoting:
File does not exist: /path/to/codebase/public_html/news 

The odd thing is that the Alias was working one morning then after some
changes to configuration (adding some mod_rewrite rules) this one Alias
out of and existing four ceased to function as designed. I have checked
permissions are still fine on the directory being pointed to, and it is
covered by a Directory directing in the upper level apache.conf file.
There are no conflicting rewrite rules or redirects that could be in
conflict with the Alias directive ....

Does anyone have an idea what could be causing this issue?

Running apache 2.0 on Debian Sarge.
-- 
Nikolai Lusan
Systems Administrator

Hitwise Pty. Ltd.
Level 7 / 580 St Kilda Road
Melbourne, Victoria 3004
Australia
Phone: +61 3 8530 2400
Fax:  +61 3 9529 8907
www.hitwise.com.au
nikolai.lusan@hitwise.com


Worldwide:  •  United States  •  United Kingdom  •  Australia  •  New
Zealand  •  Singapore  •  Hong Kong 

To subscribe to our complimentary monthly newsletter, visit:
http://www.hitwise.com.au/

The information transmitted may be confidential, is intended only for
the person to which it is addressed, and may not be reviewed,
retransmitted, disseminated or relied upon by any other persons. If you
received this message in error, please contact the sender and destroy
any paper or electronic copies of this message. Any views expressed in
this email communication are those of the individual sender, except
where the sender specifically states otherwise. Hitwise does not
represent, warrant or guarantee that the communication is free of

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Alias directive not being honored

Posted by Roberto Tortolero <ro...@gmail.com>.
Hi

I have problem with proxys on apache, i have two servers and i want to use
one as a firewall an the other as web page server. i've all ready doned,
but, the thing is that apache always returned the same carpet all the time,
no matter what address i put, always redirect me to the first virtual host.
what should a do???

Re: [users@httpd] Alias directive not being honored

Posted by Victor Trac <vi...@gmail.com>.
This may be a long shot, but have you tried getting rid of the
trailing slashes?  e.g.:

Alias /news /path/to/codebase/newsletters

--Victor

On 4/26/07, Nikolai Lusan <ni...@hitwise.com> wrote:
> Greetings,
>
> Not sure if anyone has seen anything similar to this one ...
>
> I have a number of Alias directives in place to allow access to files in
> a part of the filesystem outside the DocumentRoot. However one of these
> has mysteriously stopped working and it is produceing 404 errors on the
> alias under the webroot ...
>
> I have a setup like this in the VirtualHost
>
> DocumentRoot /path/to/codebase/public_html
> Alias /news/ /path/to/codebase/newsletters/
>
>
> When a request is made to http://mysite.com/news/filename.html the error
> log is repoting:
> File does not exist: /path/to/codebase/public_html/news
>
> The odd thing is that the Alias was working one morning then after some
> changes to configuration (adding some mod_rewrite rules) this one Alias
> out of and existing four ceased to function as designed. I have checked
> permissions are still fine on the directory being pointed to, and it is
> covered by a Directory directing in the upper level apache.conf file.
> There are no conflicting rewrite rules or redirects that could be in
> conflict with the Alias directive ....
>
> Does anyone have an idea what could be causing this issue?
>
> Running apache 2.0 on Debian Sarge.
> --
> Nikolai Lusan
> Systems Administrator
>
> Hitwise Pty. Ltd.
> Level 7 / 580 St Kilda Road
> Melbourne, Victoria 3004
> Australia
> Phone: +61 3 8530 2400
> Fax:  +61 3 9529 8907
> www.hitwise.com.au
> nikolai.lusan@hitwise.com
>
>
> Worldwide:  •  United States  •  United Kingdom  •  Australia  •  New
> Zealand  •  Singapore  •  Hong Kong
>
> To subscribe to our complimentary monthly newsletter, visit:
> http://www.hitwise.com.au/
>
> The information transmitted may be confidential, is intended only for
> the person to which it is addressed, and may not be reviewed,
> retransmitted, disseminated or relied upon by any other persons. If you
> received this message in error, please contact the sender and destroy
> any paper or electronic copies of this message. Any views expressed in
> this email communication are those of the individual sender, except
> where the sender specifically states otherwise. Hitwise does not
> represent, warrant or guarantee that the communication is free of
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
http://www.victortrac.com