Skip to content

Instantly share code, notes, and snippets.

@nukos
Last active August 29, 2015 14:09
Show Gist options
  • Save nukos/e574e7ac8c3ee8ae4a52 to your computer and use it in GitHub Desktop.
Save nukos/e574e7ac8c3ee8ae4a52 to your computer and use it in GitHub Desktop.
Wordpress Apache Setting
ServerTokens ProductOnly
SercerRoot "/etc/httpd"
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 10
Listen 80
#load modules
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
#LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so
Include conf.d/*.conf
#ExtendedStatus On
User apache
Group apache
ServerAdmin [email protected]
#ServerName example.jp:80
UseCanonicalName On
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride All
</Directory>
DirectoryIndex index.php index.html index.html.var
AccessFileName .htaccess
<IfModule mime_module>
AddType application/vnd.ms-fontobject eot
AddType font/opentype otf
AddType font/truetype ttf
AddType application/x-font-woff woff
</IfModule>
DefaultType text/plain
HostnameLookups Off
EnableMMAP off
AddDefaultCharset UTF-8
#no log
SetEnvIf Request_URI "\.(gif)|(jpg)|(png)|(css)|(js)$" nolog
SetEnvIf Request_URI "favicon\.ico" nolog
#HTTP TRACE Off
TraceEnable Off
RequestHeader unset Range
RequestHeader unset Request-Range
memory_limit = 256M
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
post_max_size = 8M
upload_max_filesize = 2M
max_file_uploads = 20
[mbstring]
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
[APC]
apc.enabled = 1
apc.shm_size = 64M
apc.gc_ttl = 3600
apc.ttl = 3600
; Local Variables:
; tab-width: 4
; End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment