Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Conditional alias?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Alias? - Hello, i want to 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 The easy way is to write a page..

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 *>

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 to be alias and named in I found it on Alibaba server : it names DLL alias you enter an Alias:..

Alias in an alias..? - Can Apache do alias in an alias..? I would like the following to work: Alias Options Indexes ExecCGI ..

alias ../htdocs - I have searched for a thread on the code from to another but haven't been able to find one. Maybe everyone uses My initial idea is to create an Alias in the config file, but I don't want to screw..
Next:  Missing ASP.NET Tabs in SBS2003 SP2 server  
Author Message
Richard K Miller

External


Since: Sep 25, 2007
Posts: 1



(Msg. 1) Posted: Tue Sep 25, 2007 1:58 pm
Post subject: Conditional alias?
Archived from groups: alt>apache>configuration (more info?)

Can I make the alias directive conditional? I want something like
this:

AliasCond %{REQUEST_FILENAME} !-f
Alias /robots.txt /www/robots.txt

AliasCond %{REQUEST_FILENAME} !-f
Alias /favicon.ico /www/favicon.ico

I'd like to configure a default robots.txt and favicon.ico for all the
virtual hosts that do not have their own. But if a virtualhost has its
own robots.txt and favicon.ico, I'd like those to be used instead. Is
this possible?

 >> Stay informed about: Conditional alias? 
Back to top
Login to vote
Motin

External


Since: Oct 04, 2007
Posts: 1



(Msg. 2) Posted: Thu Oct 04, 2007 7:59 pm
Post subject: Re: Conditional alias? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 25 Sep, 19:18, Richard K Miller <richardkmil....TakeThisOut@gmail.com> wrote:
> Can I make the alias directive conditional? I want something like
> this:
>
> AliasCond %{REQUEST_FILENAME} !-f
> Alias /robots.txt /www/robots.txt
>
> AliasCond %{REQUEST_FILENAME} !-f
> Alias /favicon.ico /www/favicon.ico
>
> I'd like to configure a default robots.txt and favicon.ico for all the
> virtual hosts that do not have their own. But if a virtualhost has its
> own robots.txt and favicon.ico, I'd like those to be used instead. Is
> this possible?

Alias directives are not read on a request-basis. You probably want a
decent RewriteRule with reelvant conditionals instead.

 >> Stay informed about: Conditional alias? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (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 ]