HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   use https for on 8080 for ispconfig 3 (http://www.howtoforge.com/forums/showthread.php?t=34188)

dpicella 27th April 2009 05:23

use https for on 8080 for ispconfig 3
 
Hi!

I installed ispconfig 3 and I would like to use https://myserver:8080

I generated a self signed crt and key and tried adding mod_ssl.c to the VirtualHost section (below), but that did not work... Any ideas?

Thanks!

# vi /etc/httpd/conf/sites-available/ispconfig.vhost
Code:

######################################################
# This virtual host contains the configuration
# for the ISPConfig controlpanel
######################################################

 Listen 8080
NameVirtualHost *:8080

<VirtualHost _default_:8080>
  ServerAdmin webmaster@localhost

  <IfModule mod_fcgid.c>
    DocumentRoot /var/www/ispconfig/
    SuexecUserGroup ispconfig ispconfig
    <Directory /var/www/ispconfig/>
      Options Indexes FollowSymLinks MultiViews +ExecCGI
      AllowOverride AuthConfig Indexes Limit Options FileInfo
      AddHandler fcgid-script .php
      FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
      Order allow,deny
      Allow from all
    </Directory>
  </IfModule>

  <IfModule mod_php5.c>
    DocumentRoot /usr/local/ispconfig/interface/web/
    AddType application/x-httpd-php .php
    <Directory /usr/local/ispconfig/interface/web>
      Options FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all
          php_value magic_quotes_gpc        0
    </Directory>
  </IfModule>

  <IfModule mod_ssl.c>
    SSLEngine on
    SSLCertificateFile /usr/local/ispconfig/interface/ssl/server.crt
    SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/server.key
  </IfModule>

  # ErrorLog /var/log/apache2/error.log
  # CustomLog /var/log/apache2/access.log combined
  ServerSignature Off

</VirtualHost>

<Directory /var/www/php-cgi-scripts>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<Directory /var/www/php-fcgi-scripts>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>


dpicella 27th April 2009 05:26

SSL on 8080 VirtualHost Config
 
Maybe *:8080 should be ipaddress:8080 ... just a thought

By the way ... does anybody know what command I can use to restart ISPConfig without rebooting? Thanks!

till 27th April 2009 14:57

ISPConfig is no daemon, so it neither needs to be restarted nor it can be restarted. If you want to restart apache, then use the apache start script.

dpicella 27th April 2009 15:45

OK ... that is new. ISPConfig 2 had the ispconfig_server daemon.

Thanks!

dpicella 29th April 2009 03:29

Mod ssl was not installed - problem solved
 
I did some investigation and discovered that mod_ssl was not installed.

# yum install mod_ssl
# /etc/init.d/httpd restart

Worked! Now I can use https://mysite:8080 with the conf file above.


All times are GMT +2. The time now is 16:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.