Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
I
ISPConfig 3
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 495
    • Issues 495
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 31
    • Merge Requests 31
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #6017

Closed
Open
Opened Jan 14, 2021 by Sascha P.@galgenjunge

SSL for nginx apps vhost

short description

The template for the nginx apps vhosts is not populated correctly, when ssl is enabled. This is only working for apache. One has to edit the vhosts file manually.

correct behaviour

The apps vhosts should work with ssl out of the box when enabled.

environment

Server OS: centos Server OS version: 8.3 ISPConfig version: 3.2.2

proposed fix

The proposed fix is attached. I cant open a merge request, since it tells me, that I've reached my limit (seems to be at 0) when trying to fork. I've edited the lines 2714 to 2715 (based on d1652d6b)

Old:

				$content = str_replace('{ssl_on}', '', $content);
				$content = str_replace('{ssl_comment}', '#', $content);

New:

			if(is_file($install_dir.'/interface/ssl/ispserver.crt') && is_file($install_dir.'/interface/ssl/ispserver.key')) {
				$content = str_replace('{ssl_on}', 'ssl', $content);
				$content = str_replace('{ssl_comment}', '', $content);
			} else {
				$content = str_replace('{ssl_on}', '', $content);
				$content = str_replace('{ssl_comment}', '#', $content);
			}

install_lib_installer_base.lib.php

Assignee
Assign to
3.2.3
Milestone
3.2.3
Assign milestone
Time tracking
None
Due date
None
Reference: ispconfig/ispconfig3#6017