You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nicholas Venturella <ni...@fastmail.fm> on 2004/03/09 22:48:12 UTC
[users@httpd] Re: internet visualization
|
| Now suppose I have a web address www.kwwda.org and want to host same on my
| server. What directives should I enter as per above example or any other
way of
| giving directive to server.
|
For a simple configuration, try something like this.
<VirtualHost *:80>
ServerName kwwda.org
DocumentRoot /www/docs/kwwda.org
ServerAdmin webmaster@kwwda.org
ErrorLog logs/kwwda.org-error_log
TransferLog logs/kwwda.org-access_log
</VirtualHost>
Note, however, that this will only accept requests for kwwda.org and not
www.kwwda.org -- to accept requests for both, put two of the <VirtualHost>
directive, and change the ServerName to be www.kwwda.org. Another way to
achieve this is by using mod_rewrite rules (or a combination of
<VirtualHost> directives and mod_rewrite rules).
- Nicholas Venturella
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Re: internet visualization
Posted by Steffen Heil <li...@steffen-heil.de>.
Hi
> Note, however, that this will only accept requests for kwwda.org and not
www.kwwda.org -- to accept requests for both, put two of the <VirtualHost>
directive, and change the ServerName to be www.kwwda.org. Another way to
achieve this is by using mod_rewrite rules (or a combination of
<VirtualHost> directives and mod_rewrite rules).
No. Just us ServerAlias
<VirtualHost *:80>
ServerName kwwda.org
ServerAlias www.kwwda.org
DocumentRoot /www/docs/kwwda.org
ServerAdmin webmaster@kwwda.org
ErrorLog logs/kwwda.org-error_log
TransferLog logs/kwwda.org-access_log
</VirtualHost>
cu,
Steffen
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org