Created
March 20, 2014 19:07
-
-
Save trinitronx/9671459 to your computer and use it in GitHub Desktop.
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
[vagrant@lwrps-centos-65 ~]$ ls -l /etc/nginx/conf.d | |
total 12 | |
-rw-r--r--. 1 root root 1187 Apr 26 2013 default.conf | |
-rw-r--r--. 1 root root 466 Apr 26 2013 ssl.conf | |
-rw-r--r--. 1 root root 283 Apr 26 2013 virtual.conf | |
[vagrant@lwrps-centos-65 ~]$ cat /etc/nginx/conf.d/default.conf | |
# | |
# The default server | |
# | |
server { | |
listen 80 default_server; | |
server_name _; | |
#charset koi8-r; | |
#access_log logs/host.access.log main; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
} | |
error_page 404 /404.html; | |
location = /404.html { | |
root /usr/share/nginx/html; | |
} | |
# redirect server error pages to the static page /50x.html | |
# | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root /usr/share/nginx/html; | |
} | |
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 | |
# | |
#location ~ \.php$ { | |
# proxy_pass http://127.0.0.1; | |
#} | |
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
# | |
#location ~ \.php$ { | |
# root html; | |
# fastcgi_pass 127.0.0.1:9000; | |
# fastcgi_index index.php; | |
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; | |
# include fastcgi_params; | |
#} | |
# deny access to .htaccess files, if Apache's document root | |
# concurs with nginx's one | |
# | |
#location ~ /\.ht { | |
# deny all; | |
#} | |
} | |
[vagrant@lwrps-centos-65 ~]$ cat /etc/nginx/conf.d/ssl.conf | |
# | |
# HTTPS server configuration | |
# | |
#server { | |
# listen 443; | |
# server_name _; | |
# ssl on; | |
# ssl_certificate cert.pem; | |
# ssl_certificate_key cert.key; | |
# ssl_session_timeout 5m; | |
# ssl_protocols SSLv2 SSLv3 TLSv1; | |
# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; | |
# ssl_prefer_server_ciphers on; | |
# location / { | |
# root html; | |
# index index.html index.htm; | |
# } | |
#} | |
[vagrant@lwrps-centos-65 ~]$ cat /etc/nginx/conf.d/virtual.conf | |
# | |
# A virtual host using mix of IP-, name-, and port-based configuration | |
# | |
#server { | |
# listen 8000; | |
# listen somename:8080; | |
# server_name somename alias another.alias; | |
# location / { | |
# root html; | |
# index index.html index.htm; | |
# } | |
#} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment