httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas Venturella" <nick2...@fastmail.fm>
Subject [users@httpd] Re: internet visualization
Date Tue, 09 Mar 2004 21:48:12 GMT
|
| 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


Mime
View raw message