Forked from igorparrabastias/gist:38f2ad11019612ad1573
Created
April 10, 2018 19:51
-
-
Save NeftaliYagua/2632a6d5d01ce6a4f10348929850d4a1 to your computer and use it in GitHub Desktop.
Example of vhost configuration in Plesk based server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example of vhost configuration in Plesk based server, in this case to disable SSLv2. | |
1) edit/create /var/www/vhosts/domain.com/conf/vhost.conf | |
2) only add the needed commands that you want overwrite: | |
### start ### | |
# General setup for the virtual host, inherited from global configuration | |
DocumentRoot "/var/www/vhosts/domain.com/httpdocs.production" | |
ServerName domain.com:443 | |
# SSL Engine Switch: | |
# Enable/Disable SSL for this virtual host. | |
SSLEngine on | |
# SSL Protocol support: | |
# List the enable protocol levels with which clients will be able to | |
# connect. Disable SSLv2 access by default: | |
SSLProtocol -all +SSLv3 +TLSv1 | |
# SSL Cipher Suite: | |
# List the ciphers that the client is permitted to negotiate. | |
# See the mod_ssl documentation for a complete list. | |
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM | |
### end ### | |
3) run ONE of the the following commands to inform plesk about the changes done: | |
# /usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.com | |
# /usr/local/psa/admin/bin/httpdmng --reconfigure-all | |
NOTE: Do not include <VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment