Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Setting up Apache virtual hosts under SuSE 9.1?
  • From: g.lams@xxxxxxxxxx
  • Date: Mon, 17 May 2004 22:58:27 +0200
  • Message-id: <OF4676F617.0D6057EE-ONC1256E97.00733742-C1256E97.00733749@xxxxxxxxxx>





It's better ( in the sense that nothing will be break with yast update) to
create inside /etc/apache2 a folder that will include your customizations.
- To do this, modify /etc/sysconfig/apache with:
APACHE_CONF_INCLUDE_DIRS="/etc/apache2/my_conf"
- Create my.conf inside /etc/apache2/my_conf/ and put "NameVirtualHost
172.20.11.212:80" in it (I used named-base virtual host)
- in /etc/apache2/vhost.d, create 2 virtual configurations files, :
default.conf, zope0.conf

The first one is just the default virtual host section

<VirtualHost dolphin.my.domain:80>
ServerAdmin webmaster@xxxxxxxxx
ServerName dolphin.my.domain
DocumentRoot "/srv/www/htdocs"
# if not specified, the global settings are used
</VirtualHost>

The second is the one used for your virtual host, in my case a redirect to
Zope:

<VirtualHost zope0.my.domain:80>
ServerAdmin webmaster@xxxxxxxxx
ServerName zope0.my.domain
DocumentRoot "/srv/www/vhosts/zope0.my.domain"

# if not specified, the global error log is used
ErrorLog /var/log/apache2/zope0.my.domain-error_log
CustomLog /var/log/apache2/zope0.my.domain-access_log combined

# log IP addresses
HostnameLookups Off

UseCanonicalName Off
ServerSignature On

RewriteEngine on
RewriteLog /var/log/apache2/zope0.my.domain-rewrite.log
RewriteLogLevel 5
RewriteRule ^/(.*)
http://zope0.my.domain:8080/VirtualHostBase/http/zope0.my.domain:80/$1
[L,P]

</VirtualHost>


-----Preston Crawford <me@xxxxxxxxxxxxxxxxxxx> wrote: -----

>To: suse-linux-e@xxxxxxxx
>From: Preston Crawford
>Date: 17/05/2004 10:35PM
>Subject: [SLE] Setting up Apache virtual hosts under SuSE 9.1?
>
>Anyone know how to do this since the yast2 applet is broken?
>
>Preston
>
>
>--
>Check the headers for your unsubscription address
>For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
>Also check the archives at http://lists.suse.com
>Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >
This Thread
  • No further messages