View previous topic :: View next topic |
Author |
Message |
Hellzone Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_human_drone.gif)
Joined: 23 May 2003 Posts: 167
|
Posted: Sat Jun 07, 2003 9:06 pm Post subject: Vhosts On the fly |
|
|
How would i achieve this in apache2? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slartibartfasz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_kif.gif)
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Sun Jun 08, 2003 6:00 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hellzone Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_human_drone.gif)
Joined: 23 May 2003 Posts: 167
|
Posted: Sun Jun 08, 2003 3:28 pm Post subject: re: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|