Changeset 1020


Ignore:
Timestamp:
04/25/06 07:09:10 (7 years ago)
Author:
anarcat
Message:

symlink our apache configs in postinst and remove them on postrm

remove the now duplicate configuration from our httpd.conf
templates. this doesn't fix the original bug (see #562) because we
still overwrite the config to avoid conflicting configurations.

this makes 0.9.5 a obligatory migration stop for upgrade paths.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/postinst

    r1001 r1020  
    155155    alternc.install 
    156156 
     157    if [ ! -h /etc/apache/conf.d/alternc-ssl.conf ]; then 
     158        ln -sf /etc/apache/conf.d/alternc-ssl.conf \ 
     159            /etc/apache/conf.d/alternc-ssl.conf 
     160    fi 
     161 
     162    if [ ! -h /etc/apache/conf.d/alternc.conf ]; then 
     163        ln -sf /etc/apache/conf.d/alternc.conf \ 
     164            /etc/apache/conf.d/alternc.conf 
     165    fi 
     166 
    157167    ;; 
    158168 
  • trunk/debian/postrm

    r1019 r1020  
    2424    ;; 
    2525  remove|upgrade|failed-upgrade|abort-install|abort-upgrade) 
    26     rm -f /etc/apache/conf.d/override.php.conf 
     26    rm -f /etc/apache/conf.d/override.php.conf /etc/apache/conf.d/alternc-ssl.conf /etc/apache/conf.d/alternc.conf 
    2727    ;; 
    2828  disappear) 
  • trunk/etc/alternc/templates/apache-ssl/httpd.conf

    r943 r1020  
    261261DirectoryIndex index.html index.htm index.shtml index.php3 index.php4 index.phtml index.php 
    262262 
    263 <VirtualHost *:443> 
    264         SSLEnable 
    265         DocumentRoot /var/alternc/bureau 
    266         alias /admin/sql        /usr/share/phpmyadmin 
    267         alias /webmail          /usr/share/squirrelmail 
    268         Alias /icons/ /usr/share/apache/icons/ 
    269 #       ***ALTERNC_ALIASES*** 
    270  
    271 </VirtualHost> 
    272  
    273263Include /etc/apache-ssl/conf.d/[^.#]* 
    274  
    275 <Directory /var/alternc> 
    276         php_admin_value disable_functions chmod,chown,chgrp,link,symlink 
    277         AllowOverride AuthConfig FileInfo 
    278         Options Indexes Includes FollowSymLinks MultiViews 
    279         Order allow,deny 
    280         Allow from all 
    281 </Directory> 
    282 <Directory /var/alternc/bureau> 
    283         php_admin_flag safe_mode_gid off 
    284         php_admin_flag safe_mode off 
    285 </Directory> 
    286 <Directory /var/alternc/dns/%%fqdn_lettre%%/%%fqdn%%> 
    287         php_admin_flag safe_mode_gid off 
    288         php_admin_flag safe_mode off 
    289 </Directory> 
    290  
  • trunk/etc/alternc/templates/apache/httpd.conf

    r857 r1020  
    4141# 
    4242# Please keep this LoadModule: line here, it is needed for installation. 
    43 LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so 
     43#LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so 
    4444LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so 
    4545LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so 
     
    239239</IfModule> 
    240240 
    241 <Location /server-status> 
    242     SetHandler server-status 
    243     Order deny,allow 
    244     Deny from all 
    245     Allow from 127.0.0.1  
    246     Allow from %%monitor_ip%% 
    247 </Location> 
    248  
    249241DirectoryIndex index.html index.htm index.shtml index.php3 index.php4 index.phtml index.php 
    250242 
    251 <VirtualHost *:80> 
    252 # ***ALTERNC_ALIASES*** 
    253         alias /admin/sql        /usr/share/phpmyadmin 
    254         alias /webmail          /usr/share/squirrelmail 
    255         Alias /icons/ /usr/share/apache/icons/ 
    256  
    257         UseCanonicalName    Off 
    258         VirtualDocumentRoot /var/alternc/dns/%-2.1/%0 
    259 </VirtualHost> 
    260  
    261243Include /etc/apache/conf.d/[^.#]* 
    262  
    263 <Directory /var/alternc> 
    264         php_admin_value disable_functions chmod,chown,chgrp,link,symlink 
    265         AllowOverride AuthConfig FileInfo Limit Indexes  
    266         Options Indexes Includes FollowSymLinks MultiViews 
    267         Order allow,deny 
    268         Allow from all 
    269 </Directory> 
    270 <Directory /var/alternc/bureau> 
    271         php_admin_flag safe_mode_gid off 
    272         php_admin_flag safe_mode off 
    273 </Directory> 
    274 <Directory /var/alternc/dns/%%fqdn_lettre%%/%%fqdn%%> 
    275         php_admin_flag safe_mode_gid off 
    276         php_admin_flag safe_mode off 
    277 </Directory> 
    278  
    279  
    280  
Note: See TracChangeset for help on using the changeset viewer.