httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <supp...@gej-it.com>
Subject RE: [users@httpd] Alias not working
Date Wed, 23 Apr 2003 12:43:01 GMT
Make sure that you don't have any of your aliases set like before and set
them all to no-trailing slash and it should be perfect.

Jeff Cohen

> -----Original Message-----
> From: Thomas Strike [mailto:striket@pacbell.net]
> Sent: Wednesday, April 23, 2003 2:35 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Alias not working
> 
> That's one I missed. the Apache on line Docs didn't make this clear.  You
> really have to look at their example because they don't explain it this
> factually.
> 
> I tried it after removing the end slash from the target subdirectory and
it
> still doesn't work.
> Apache is still looking for a file, /var/www/html/virtualwebsite/WebCam
when
> I ask for http://www.virtualwebsite.com/WebCam/webcam.jpg
> 
> Any more thoughts?
> 
> Tom S.
> 
> >Ok guys, the trailing slash has a meaning, and it's in the docs as well..
> 
> >Alias /folder /home/folder - will point to http://website.com/folder +
> >http://website.com/folder/
> 
> >Alias /folder/ /home/folder/ - will point only to
> http://website.com/folder/
> 
> >Alias /folder /home/folder/ - will not point!
> 
> >Alias /folder/ /home/folder - will point to the right folder but files
are
> >not accessible, which means - not good. :)
> 
> >All the best,
> >Jeff Cohen
> 
> 
> >> -----Original Message-----
> >> From: Thomas Strike [mailto:striket@pacbell.net]
> >> Sent: Tuesday, April 22, 2003 10:47 PM
> >> To: users@httpd.apache.org
> >> Subject: Re: [users@httpd] Alias not working
> >>
> >> If you put the trailing slash on, then Apache will not use the Aliased
> >> subdirectory for it's search if the person accessing your web site
leaves
> >> off the end slash on the URL in his web browser.
> >> ( http://www.Website.com/myAlias ) Apache will not assume that myAlias
is
> >a
> >> directory and not try to display index.html or a directory.
> >>
> >> If you leave the trailing slash off of your declaration and this same
URL
> >>is
> > >used to access your Web Pages, Then Apache will assume that this is the
> > >aliased directory and return the index.html or Directory.
> >>
> > >See ( http://httpd.apache.org/docs-2.0/mod/mod_alias.html#alias )
> >>
> > >Tom S.
> > >
> > >> My aliases are all:
> > >>   /myAlias/
> > >>
> > > >Ken
> > > >At 10:05 PM 04/22/2003 , you wrote:
> > > >That issue is about whether or not Apache will look for the default
> > >>document
> > > >in the Aliased subdirectory if the person trying to access that
> > >>subdirectory
> > > >leaves of the final slash.
> > > >
> > > >Tom S.
> > > >
> > > > > I'm preety new here, but I know that there are issues with the
> >>>> trailing
> > > > > slash in aliases.  have you tried /WebCam/ ?
> > > > >
> > > > > Ken
> > > > >
> > > > > At 07:24 PM 04/22/2003 , you wrote:
> > > > > >I need some new ideas as to what would make Alias used within
a
> > > > > ><VirtualHost> container be ignored by Apache2.
> > > > > >
> > > > > ><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>
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message