hoangweb
4/16/2016 - 1:05 PM

apache.conf

apache.conf

ServerName localhost

# port
Listen 80

<IfModule ssl_module>
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
	Listen 443
</IfModule>

#KeepAlive: Whether or not to allow persistent connections
KeepAlive On

# do not want our server to relay any important information
ServerTokens Prod

# your email
ServerAdmin root@localhost

#  enable CGI
Options FollowSymLinks ExecCGI  # disable Indexes
Options Indexes FollowSymLinks ExecCGI  #keep indexes

<Directory />
    Options FollowSymLinks
	AllowOverride None
	Require all denied
</Directory>

<Directory /usr/share>
	AllowOverride None
	Require all granted
</Directory>

<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>

#<Directory /srv/>
#	Options Indexes FollowSymLinks
#	AllowOverride None
#	Require all granted
#</Directory>

# do not want to expose the server's signature
ServerSignature Off

# determined by the values used in our web pages, so comment this.'
AddDefaultCharset UTF-8