Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # You may add here your
- # server {
- # ...
- # }
- # statements for each of your virtual hosts to this file
- ##
- # You should look at the following URL's in order to grasp a solid understanding
- # of Nginx configuration files in order to fully unleash the power of Nginx.
- # http://wiki.nginx.org/Pitfalls
- # http://wiki.nginx.org/QuickStart
- # http://wiki.nginx.org/Configuration
- #
- # Generally, you will want to move this file somewhere, and start with a clean
- # file but keep this around for reference. Or just disable in sites-enabled.
- #
- # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
- ##
- server {
- listen 80;
- listen [::]:80 default_server ipv6only=on;
- server_name 76chan.org;
- rewrite ^ https://$server_name$request_uri? permanent;
- }
- server {
- listen 443; ## listen for ipv4; this line is default and implied
- listen [::]:443 default_server ipv6only=on; ## listen for ipv6
- ssl on;
- ssl_certificate /etc/nginx/ssl/ssl-unified.crt;
- ssl_certificate_key /etc/nginx/ssl/ssl.key;
- root /var/www;
- index index.php index.html index.htm /_h5ai/server/php/index.php;
- # Make site accessible from http://localhost/
- server_name 76chan.org;
- autoindex on;
- location ~ ^(.*?\.php)($|/.*)? {
- try_files $1 =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_param PATH_INFO $2 if_not_empty;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location /doc/ {
- alias /usr/share/doc/;
- autoindex on;
- allow 127.0.0.1;
- allow ::1;
- deny all;
- }
- location ^~ /m/ {
- auth_basic "Fuck off if you're not a mod.";
- auth_basic_user_file /home//apasswords/.htpasswd;
- }
- # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
- #location /RequestDenied {
- # proxy_pass http://127.0.0.1:8080;
- #}
- error_page 404 /404.html;
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- location ~ /\.ht {
- deny all;
- }
- }
- server {
- listen 80;
- server_name irc.76chan.org;
- root /var/www/irc;
- index index.html index.htm;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement