https://issues.apache.org/bugzilla/show_bug.cgi?id=47332
--- Comment #4 from Nicolas F. <[email protected]> 2010-11-05 04:59:57 EDT --- Hi, I'll try to be more clear. Each time i create a vhost, i must put the following rewrite rules inside : RewriteCond %{HTTP_HOST} !www.elitwork.com RewriteRule (.*) www.elitwork.com/$1 [R=301,L] By this way, i ensure the client use the default domain instead of an alias (like elitwork.com). I do it systematically to avoid duplicate content in my websites. As i define a ServerName and a ServerAlias value, i thought the SERVER_NAME global variable was filled with the ServerName value done in the vhost config. But it's not the case. It give the value of the ServerName OR the ServerAlias. So i can't write a generic rule for each vhost of my httpd.conf file. If i could, there will be two major advantages for me (and probably many others) : - currently, it would save 200 lines (50vhost * 2 lines) in my httpd.conf (in fact, i choose to use the .htaacess for readability, but performances are affected by it). That's why i suggested an enhancement : fill SERVER_NAME with the ServerName value defined in the vhost, or, create a DEFAULT_SERVER_NAME variable to allow us to create generic rewriting rules. I assume the fact my first request was not clear and i apologize for it. Thank you. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
