You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fernando Reuter Wendt <fe...@admijui.unijui.tche.br> on 2002/03/05 18:20:02 UTC

Is this make with virtual host?

Hello,

I have one question about the webserver configuration bellows, and as i´m
not a guru with vhosts, i need some help. I will have to make one (and if is
that aplicable, more than 20) address like http://newsite.domain.com. But
all the files are at the /home/httpd/htdocs/newsite, and i don´t want
someone finger to http://www.domain.com/newsite - that one may not work. All
them at the same server, runnig at FreeBSD OS, Apache 1.3.23 and with one IP
network id. This can be done by Virtual Hosts, if yes, how? The server will
not decrease performance?

Sorry about my english.

Thanks,

+-------------------------
 Fernando A. R. Wendt
 Webmaster UNIJUÍ
 http://www.unijui.tche.br
-------------------------+
 

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Is this make with virtual host?

Posted by Martin Haase-Thomas <mh...@meome-ag.de>.
Hi,

maybe somthing like:

DocumentRoot /home/httpd/htdocs

RewriteEngine On
RewriteLog /path/to/logfile
RewriteLogLevel [0 ... 9] # 0 tells nothing, bigger than 4 may be too 
much verbose
RewriteRule /([0-9a-zA-Z_-]*)?/(.*) http://($1).domain.com($2) [R,PT] # 
test the rule, I'm not sure

<VirtualHose newsite.domain.com>
    DocumentRoot /home/httpd/htdocs/newsite
   ...
</VirtualHost>

cheers
Martin

Fernando Reuter Wendt wrote:

>Hello,
>
>I have one question about the webserver configuration bellows, and as i´m
>not a guru with vhosts, i need some help. I will have to make one (and if is
>that aplicable, more than 20) address like http://newsite.domain.com. But
>all the files are at the /home/httpd/htdocs/newsite, and i don´t want
>someone finger to http://www.domain.com/newsite - that one may not work. All
>them at the same server, runnig at FreeBSD OS, Apache 1.3.23 and with one IP
>network id. This can be done by Virtual Hosts, if yes, how? The server will
>not decrease performance?
>
>Sorry about my english.
>
>Thanks,
>
>+-------------------------
> Fernando A. R. Wendt
> Webmaster UNIJUÍ
> http://www.unijui.tche.br
>-------------------------+
> 
>
>---------------------------------------------------------------------
>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
>For additional commands, e-mail: users-help@httpd.apache.org
>
>

-- 
                   http://www.meome.de
-------------------------------------------------------
Martin Haase-Thomas         |       Tel.: 030 43730-558
meOme AG                    |       Fax.: 030 43730-555
Software Development        |           mht@meome-ag.de
-------------------------------------------------------




---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org