You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Di...@eurotours.at on 2003/04/22 11:03:29 UTC
[users@httpd] Antwort: [users@httpd] Alias not working with Apache2
If you look at
http://httpd.apache.org/docs/mod/mod_alias.html#alias
you can see that the module work with directory-path and not with
path and file.
Use Alias /WebCam /home/WebCam/ instead.
Dietmar
"Thomas Strike" <st...@pacbell.net> am 22.04.2003 10:43:59
Bitte antworten an users@httpd.apache.org
An: "Apache mail list" <us...@httpd.apache.org>
Kopie:
Thema: [users@httpd] Alias not working with Apache2
I am running Apache2 on Redhat8. I am doing URL based virtual hosting with
5
web sites on the server.
I am trying to get the following alias to work:
<VirtualHost 192.168.0.3:80>
Alias /WebCam /home/WebCam/webcam.jpg
ServerName www..vertualwebsite.com
DocumentRoot /var/www/html/virtualwebsite
<Directory /home/WebCam>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
When I try to access http://www.virtualwebsite.com/WebCam/webcam.jpg . The
error shown in my "virtualwebsite_error" file is "File does not exist:
/home/www/html/virtualwebsite/WebCam/webcam.jpg"
What am I missing.
What would cause Apache to egnore an Alias statement.
Tom S.
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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] Antwort: [users@httpd] Alias not working with Apache2
Posted by Thomas Strike <st...@pacbell.net>.
Thanks for your response. You caught a type-o. I did this at 3AM in the
morning and I guess that I wasn't awake.
The line in my httpd.conf file is actually 'Alias /WebCam /home/WebCam/'.
the file name is not actually on this statement, just the path.
<VirtualHost 192.168.0.3:80>
Alias /WebCam /home/WebCam/
ServerName www..vertualwebsite.com
DocumentRoot /var/www/html/virtualwebsite
<Directory /home/WebCam>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
___________________________________________________
>
> If you look at
> http://httpd.apache.org/docs/mod/mod_alias.html#alias
> you can see that the module work with directory-path and not with
> path and file.
>
> Use Alias /WebCam /home/WebCam/ instead.
>
> Dietmar
>
>
> "Thomas Strike" <st...@pacbell.net> am 22.04.2003 10:43:59
> Bitte antworten an users@httpd.apache.org
> An: "Apache mail list" <us...@httpd.apache.org>
> Kopie:
> Thema: [users@httpd] Alias not working with Apache2
>
>
> I am running Apache2 on Redhat8. I am doing URL based virtual hosting with
> 5 web sites on the server. I am trying to get the following alias to work:
>
> <VirtualHost 192.168.0.3:80>
> Alias /WebCam /home/WebCam/webcam.jpg
> ServerName www..vertualwebsite.com
> DocumentRoot /var/www/html/virtualwebsite
> <Directory /home/WebCam>
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> </VirtualHost>
>
> When I try to access http://www.virtualwebsite.com/WebCam/webcam.jpg .
The
> error shown in my "virtualwebsite_error" file is "File does not exist:
> /home/www/html/virtualwebsite/WebCam/webcam.jpg"
>
> What am I missing.
> What would cause Apache to egnore an Alias statement.
>
> Tom S.
---------------------------------------------------------------------
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