|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Thanks, Hans & Mark,
The configuration changes worked. However, I didn't really understand your follow-ups. Mark said: >I fully agree with Hans here, and would add a suggestion. Anytime you >have virtual hosts be sure your main server (not the virtual host config) >in not defined. Instead, create a third virtual host placed in front of >all your other virtual hosts as an 'error catch-all' v-host. That way you >do not show a wrong website, you admit that an error has occurred and the >intended website in not available at this time. So...what, I set up a placeholder directory called, say, "ServerNotFound" and...set up the first record to point to that? And then Hans said: >I even prefer to make it independent to the order of configuration and >*name* it ><virtual_host _default_:80> ... </virtual_host> >(While using an include 'vhost/*.conf' OS sorting order may vary and break >the intent, but when named this way ) >In fact I dislike serveraliasses so much, I have some mapped rewrites in >there to redirect *.domain.tld to www.domain.tld. Even domian.tld or >domane.tld is put on the right track that way ... nifty list of 10 domains >times avg 5 speling bugs ;-) >It keeps me from hassling with domain and as a bonus google will not >report double content... Example? Thanks again! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 10 Feb, 19:53, b...@kingdomrpg.com wrote:
> Thanks, Hans & Mark, > > The configuration changes worked. However, I didn't really > understand your follow-ups. Mark said: > > >I fully agree with Hans here, and would add a suggestion. Anytime you > >have virtual hosts be sure your main server (not the virtual host config) > >in not defined. Instead, create a third virtual host placed in front of > >all your other virtual hosts as an 'error catch-all' v-host. That way you > >do not show a wrong website, you admit that an error has occurred and the > >intended website in not available at this time. > > So...what, I set up a placeholder directory called, say, > "ServerNotFound" and...set up the first record to point to that? > yep! > And then Hans said: > > >I even prefer to make it independent to the order of configuration and > >*name* it > ><virtual_host _default_:80> ... </virtual_host> > >(While using an include 'vhost/*.conf' OS sorting order may vary and break > >the intent, but when named this way ) > >In fact I dislike serveraliasses so much, I have some mapped rewrites in > >there to redirect *.domain.tld towww.domain.tld. Even domian.tld or > >domane.tld is put on the right track that way ... nifty list of 10 domains > >times avg 5 speling bugs ;-) > >It keeps me from hassling with domain and as a bonus google will not > >report double content... > > Example? > > Thanks again! <VirtualHost _default_:80> ServerName _default_ DocumentRoot /usr/local/apache2/vhosts/servernotfound/public .... </VirtualHost> |
|
![]() |
| Outils de la discussion | |
|
|