arozwalak
12/16/2013 - 9:36 AM

WebServer: Virtual Host

WebServer: Virtual Host


<VirtualHost 127.0.0.1>
	ServerName damain.name
	DocumentRoot "Project Path"
	<Directory "Project Path">
		Options FollowSymLinks Indexes
		AllowOverride All
		Order deny,allow
		Allow from 127.0.0.1
		Deny from all
		Require all granted
	</Directory>
</VirtualHost>

<VirtualHost 127.0.0.1:443>
	ServerName domain.name
	SSLEngine on
    SSLCertificateFile conf/ssl.crt/server.crt
    SSLCertificateKeyFile conf/ssl.key/server.key
	DocumentRoot "Project Path"
	<Directory "Project Path">
		Options FollowSymLinks Indexes
		AllowOverride All
		Order deny,allow
		Allow from 127.0.0.1
		Deny from all
		Require all granted
	</Directory>
</VirtualHost>