2014-10-29 17:19 GMT+01:00 <berenger.mo...@neutralite.org>: > Le 29.10.2014 16:11, Bram Diederik a écrit : > >> >>> So, you probably should have one virtual host like >>> >>> and the other one like >>> >>> ? >>> >>> -- >>> Yes and both there own FcgidInitialEnv X_DEBIAN_SITEID setting. >>> >>> FcgidInitialEnv X_DEBIAN_SITEID "default" for the 443 site >>> >>> FcgidInitialEnv X_DEBIAN_SITEID "dev" for the 3000 site >>> >> >> but both sites connect to the default site when i visit them with >> some browser >> > > Can you show the whole exact content of your /etc/apache2/sites-enabled > please? > Could you also show the content of /etc/redmine/ (for i in $(find > /etc/redmine); do echo $i;cat $i;done will do the job)? > > > -
Sure: here are sites ------------------------------------------------------- <IfModule mod_ssl.c> <VirtualHost *:443> <Directory /usr/share/phpmyadmin> Options FollowSymLinks DirectoryIndex index.php <IfModule mod_php5.c> AddType application/x-httpd-php .php php_flag magic_quotes_gpc Off php_flag track_vars On php_flag register_globals Off php_admin_flag allow_url_fopen Off php_value include_path . php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/ </IfModule> </Directory> # FcgidInitialEnv for module mod_fcgid FcgidInitialEnv RAILS_RELATIVE_URL_ROOT "" FcgidInitialEnv X_DEBIAN_SITEID "default" Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/ DocumentRoot /usr/share/redmine/public <Directory "/usr/share/redmine/public"> Options +FollowSymLinks +ExecCGI Order allow,deny Allow from all RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$ RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] </Directory> SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key </VirtualHost> </IfModule>