Hi Guys, I know that this is a subject that has already been discuss several times on this forum, and there is RFE request about that, but I can't find something clear to achieve this! So, I have configure apache on the web server to listen to 81 et 443. So now, what template file I am suppose to change to configure virtualhost to listen to *:81 when no-ssl and *:443 when ssl is on? I can see this in /usr/local/ispconfig/server/conf/vhost.conf.master: Code: <tmpl_loop name="vhosts"> <VirtualHost {tmpl_var name='ip_address'}:{tmpl_var name='port'}> <tmpl_if name='php' op='==' value='suphp'> DocumentRoot <tmpl_var name='web_document_root'> </tmpl_else> <tmpl_if name='php' op='==' value='cgi'> DocumentRoot <tmpl_var name='web_document_root'> </tmpl_else> <tmpl_if name='php' op='==' value='php-fpm'> DocumentRoot <tmpl_var name='web_document_root'> </tmpl_else> DocumentRoot <tmpl_var name='web_document_root_www'> </tmpl_if> </tmpl_if> </tmpl_if> ServerName <tmpl_var name='domain'> <tmpl_if name='alias'> <tmpl_var name='alias'> </tmpl_if> ServerAdmin webmaster@<tmpl_var name='domain'> ErrorLog /var/log/ispconfig/httpd/<tmpl_var name='domain'>/error.log <tmpl_if name='errordocs'> Alias /error/ "<tmpl_var name='web_document_root_www'>/error/" ErrorDocument 400 /error/400.html ErrorDocument 401 /error/401.html ErrorDocument 403 /error/403.html ErrorDocument 404 /error/404.html ErrorDocument 405 /error/405.html ErrorDocument 500 /error/500.html ErrorDocument 502 /error/502.html ErrorDocument 503 /error/503.html </tmpl_if> <IfModule mod_ssl.c> <tmpl_if name='ssl_enabled'> SSLEngine on SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.crt SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.key <tmpl_if name='has_bundle_cert'> SSLCACertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.bundle </tmpl_if> </tmpl_if> I can hardcode the "port" variable to 81, but there is no port for ssl? Is that the right place to change it? Thanks a lot!
I've tried to modify {tmpl_var name='port'} for {tmpl_var name='81'} But it doesn't seem to work... Any help will be appreciate...