You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Thomas Strike <st...@pacbell.net> on 2003/04/22 10:43:59 UTC
[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
Re: [users@httpd] Alias not working with Apache2
Posted by Thomas Strike <st...@pacbell.net>.
????????
What's different except the wild card you're using instead of single IP
address and Specified port 80 that I'm using? My NameVirtualHost =
192.168.0.3:80. I'm using only one of my network cards for virtual hosting.
OH, The webcam.jpg on the end of the Alias statement was a type-o. It
doesn't exist in my setup.
I really do appreciate anything anyone can offer. I know it has to be
something that I'm overlooking.
Thanks,
Tom S.
Man you massed it all up,
<VirtualHost *>
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>
Now you can try accessing to:
http://www.virtualwebsite.com/WebCam/webcam.jpg
All the best,
Jeff Cohen
> -----Original Message-----
> From: Thomas Strike [mailto:striket@pacbell.net]
> Sent: Tuesday, April 22, 2003 4:44 AM
> To: Apache mail list
> Subject: [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
RE: [users@httpd] Alias not working with Apache2
Posted by Jeff Cohen <su...@gej-it.com>.
Man you massed it all up,
<VirtualHost *>
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>
Now you can try accessing to:
http://www.virtualwebsite.com/WebCam/webcam.jpg
All the best,
Jeff Cohen
> -----Original Message-----
> From: Thomas Strike [mailto:striket@pacbell.net]
> Sent: Tuesday, April 22, 2003 4:44 AM
> To: Apache mail list
> Subject: [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