Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vhosts On the fly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Hellzone
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 167

PostPosted: Sat Jun 07, 2003 9:06 pm    Post subject: Vhosts On the fly Reply with quote

How would i achieve this in apache2?
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Sun Jun 08, 2003 6:00 am    Post subject: Reply with quote

in /etc/apache2/conf/apache.conf:

Code:

LoadModule vhost_alias_module            modules/mod_vhost_alias.so
.
.
Include conf/vhosts/vhosts.conf


in /etc/apache2/conf/vhosts/vhosts.conf - example for name based virtual hosts:

Code:

<VirtualHost 131.128.95.56>
        ServerName h2o.htu.tuwien.ac.at
        DocumentRoot /home/httpd/htdocs
</VirtualHost>

<VirtualHost 131.128.95.56>
        ServerName www.fsch.at
        DocumentRoot /home/httpd/htdocs/fsch
</VirtualHost>

<VirtualHost 131.128.95.56>
        ServerName www.ainoa.net
        DocumentRoot /home/httpd/htdocs/hermann/ainoa
        ServerAdmin xxxxxx@stud.tuwien.ac.at
        RewriteEngine On
        RewriteOptions inherit
</VirtualHost>


more details are here
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
Hellzone
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 167

PostPosted: Sun Jun 08, 2003 3:28 pm    Post subject: re: Reply with quote

Sorry i wasn't clear in my request i meant i'd like my website to be able to modify vhosts on the fly, so if someone changes details about their website on my website i'd like it to automatically update it without me having to do it.

-James
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum