[*] -  SecureInfo.eu, /Web/VirtualHost Exemple.txt

Back



<IfModule mod_ssl.c>

	<VirtualHost *:443>

		# The ServerName directive sets the request scheme, hostname and port that
		# the server uses to identify itself. This is used when creating
		# redirection URLs. In the context of virtual hosts, the ServerName
		# specifies what hostname must appear in the request's Host: header to
		# match this virtual host. For the default virtual host (this file) this
		# value is not decisive as it is used as a last resort host regardless.
		# However, you must set it for any further virtual host explicitly.
		#ServerName www.example.com

		ServerName  www.secureinfo.eu
		ServerAlias www.secureinfo.eu
		ServerAdmin webmaster@localhost
		DocumentRoot /store/apps/www/secureinfo.eu


		<Files ~ ".(sh|inc|sql|conf|cnf|swp|DS_Store)$">
			Order allow,deny
			Deny from all
		</Files>

		# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
		# error, crit, alert, emerg.
		# It is also possible to configure the loglevel for particular
		# modules, e.g.
		#LogLevel info ssl:warn

		ErrorLog ${APACHE_LOG_DIR}/secureinfo_error.log
		CustomLog ${APACHE_LOG_DIR}/secureinfo_access.log combined

		# For most configuration files from conf-available/, which are
		# enabled or disabled at a global level, it is possible to
		# include a line for only one particular virtual host. For example the
		# following line enables the CGI configuration for this host only
		# after it has been globally disabled with "a2disconf".
		#Include conf-available/serve-cgi-bin.conf

		#ErrorDocument 500 "/store/apps/www/secureinfo.eu/blank.html"
		#ErrorDocument 400 "/store/apps/www/secureinfo.eu/blank.html"
		#ErrorDocument 403 "/store/apps/www/secureinfo.eu/blank.html"
		#ErrorDocument 404 "/store/apps/www/secureinfo.eu/blank.html"
		#ErrorDocument 405 "/store/apps/www/secureinfo.eu/blank.html"

		# RewriteEngine on
		# RewriteCond %{SERVER_NAME} =www.secureinfo.eu
		# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]


		Include /etc/letsencrypt/options-ssl-apache.conf
		SSLCertificateFile /etc/letsencrypt/live/www.secureinfo.eu/fullchain.pem
		SSLCertificateKeyFile /etc/letsencrypt/live/www.secureinfo.eu/privkey.pem

	</VirtualHost>

</IfModule>
⬆️ Top
admin