homepage Welcome to WebmasterWorld Guest from 50.17.107.233
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
two virtual hosts, one set of Rewrite directives
is this possible in httpd.conf?
Finder




msg:913015
 10:12 pm on Aug 10, 2003 (gmt 0)

I just set up a second virtual host on my IP. Unfortunately the default host is the only one getting bad-bot protection from my global rewrite rules (which are numerous).

How can I make the rules apply to both hosts without duplicating them inside the <VirtualHost> declarations? I noticed that you cannot include files inside those declarations.

I can guess this would be a common issue, but I was unable to find anything in the WW archives or Google. Any help is appreciated.

 

waitman




msg:913016
 5:26 pm on Aug 11, 2003 (gmt 0)

I believe you will have to copy them if you have separate <VirtualHost> directives.

You could put both sites into one <VirtualHost>, and handle Content changes programatically or possibly with rewrite.

Another thing to look at is Mass Virtual Hosting, you can set up one configuration and have it serve different content, etc based on the host header info. This may solve the problem.

Take care,

Finder




msg:913017
 7:34 pm on Aug 12, 2003 (gmt 0)

Ok, it took me three days, but I did figure it out.

For future reference...

Leave your bad-bot rewrites in your main server config. Inside each of your <VirtualHost> declarations, use the 'RewriteOptions inherit' directive. It will force the host to inherit all rewrite directives from the main server config. You can then add any host-specific rewrites.

Maybe in another three days I will have figured out the other problems. :)

waitman




msg:913018
 7:46 pm on Aug 12, 2003 (gmt 0)

thanks for the tip.

take care,

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved