Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

misunderstanding of alias,pls comment it out

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Recommend free disk space anywhere? - (need 600MB..  
Author Message
Xinhao Zheng

External


Since: Feb 12, 2008
Posts: 2



(Msg. 1) Posted: Tue Feb 12, 2008 5:16 am
Post subject: misunderstanding of alias,pls comment it out
Archived from groups: alt>apache>configuration (more info?)

hi all,

below is a snippet from apahce doc[http://httpd.apache.org/docs/2.2/
mod/mod_alias.html#alias]

i am a little confused about alias.

Note that you may need to specify additional <Directory> sections
which cover the destination of aliases. Aliasing occurs before
<Directory> sections are checked, so only the destination of aliases
are affected. (Note however <Location> sections are run through once
before aliases are performed, so they will apply.)

what does "Aliasing occurs before <Directory> sections are checked"
mean?does it mean wherever the alias directive is,it will be done
before <Directory>.

"so only the destination of aliases are affected. " in this line,what
does affected mean?

thanks in advance!

 >> Stay informed about: misunderstanding of alias,pls comment it out 
Back to top
Login to vote
phantom

External


Since: Aug 23, 2007
Posts: 66



(Msg. 2) Posted: Tue Feb 12, 2008 11:06 am
Post subject: Re: misunderstanding of alias,pls comment it out [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Xinhao Zheng" <xinhaozheng.TakeThisOut@gmail.com> wrote in message
news:fab6e92e-00d8-45ea-ae87-3e21b82e91cd@l1g2000hsa.googlegroups.com...
> hi all,
>
> below is a snippet from apahce doc[http://httpd.apache.org/docs/2.2/
> mod/mod_alias.html#alias]
>
> i am a little confused about alias.
>
> Note that you may need to specify additional <Directory> sections
> which cover the destination of aliases. Aliasing occurs before
> <Directory> sections are checked, so only the destination of aliases
> are affected. (Note however <Location> sections are run through once
> before aliases are performed, so they will apply.)
>
> what does "Aliasing occurs before <Directory> sections are checked"
> mean?does it mean wherever the alias directive is,it will be done
> before <Directory>.

Basically, yes.

>
> "so only the destination of aliases are affected. " in this line,what
> does affected mean?
>

It means that given a DocumentRoot of /var/www/html and the alias directive:

Alias /here /var/www/somewhere-else

a directory section of
<Directory /var/www/html/here>
will not affect a request for http://your-server/here/ as the alias
directive has told apache to map that request to a different directory.

you would need a directory section that points to the target of the alias -
<Directory /var/www/somewhere-else>

 >> Stay informed about: misunderstanding of alias,pls comment it out 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 3) Posted: Tue Feb 12, 2008 11:06 am
Post subject: Re: misunderstanding of alias,pls comment it out [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Xinhao Zheng

External


Since: Feb 12, 2008
Posts: 2



(Msg. 4) Posted: Tue Feb 12, 2008 5:26 pm
Post subject: Re: misunderstanding of alias,pls comment it out [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
Related Topics:
Comment déterminer le répertoire physique de cgi-bin ? - Bonjour, Comment pourrait-on déterminer le répertoire physique de cgi-bin sur une conf qq ? Merci d'avance. Olivier.

an alias for use a dll as a cgi ! - Hello, I don't find this option in Apache : how to use a .dll and alias it as a .cgi. Example :I want "azerty.dll" to be alias and named "azerty.cgi" in httpd.conf. I found it on Alibaba server : it names DLL alias you enter an Alia...

301 v alias - i have multiple domains pointing to the same website using alias i have been told search enigines such as google may not like this and that i should use a 301 redirect instead <VirtualHost *> ServerAdmin webmaster@xxxxxl.com DocumentRoot...

Alias? - Hello, i want to accomplish the following task: I got some name based vhosts on my system every vhost got its own working directory Now i ant to present a standard page like: "A new www-site will soon be published here" The easy way is to wri...

Alias in an alias..? - Can Apache do alias in an alias..? I would like the following to work: Alias /subfolder "C:\Inetpub\wwwroot\Project Name\beta" <Directory "C:\Inetpub\wwwroot\Project Name\beta"> Options Indexes FollowSymLinks MultiViews...
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]