You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Re...@aol.com on 2004/03/09 21:39:23 UTC
[users@httpd] internet visualization
Dear friends,
I have Apache running and am able to connect via http://localhost
Now I want to host web sites(Virtual hosting)so that people can see their
sites via internet at other places.
Tutorial guides to configure as for example
------------------------------------------------------------------------------
---------
<VirtualHost 10.1.2.3>
ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_log
TransferLog logs/host.foo.com-access_log
</VirtualHost>
------------------------------------------------------------------------------
-----------
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.
Comments, please.
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
[users@httpd] Re: internet visualization
Posted by Nicholas Venturella <ni...@fastmail.fm>.
|
| 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