Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx Modificated

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
n0rton
Posts: 29
Joined: Tue Mar 31, 2015 7:31 am

Nginx Modificated
  • Quote

Post by n0rton » Tue Mar 31, 2015 7:35 am

Hi,

I buy one script and in the support not answer yet.

After end instalation script said me that:

Code: Select all

server {
            listen 80;
            server_name www.yourdomain.com;
            # $scheme will get the http protocol
            # and 301 is best practice for tablet, phone, desktop and seo
            return 301 $scheme://yourdomain.com$request_uri;
    }

    server {
            listen 80;
            root /var/www/yourdomain.com/public_html/;
            index index.php index.html index.htm;
            server_name yourdomain.com;

            location / {
                try_files $uri $uri/ /index.php;
            }

            location ~ \.php$ {
                include /opt/nginx/conf/fastcgi_params;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /var/www/yourdomain.com/public_html/index.php;
                fastcgi_param  REQUEST_URI      $request_uri;
                fastcgi_param  QUERY_STRING     $query_string;
                fastcgi_param  REQUEST_METHOD   $request_method;
                fastcgi_param  CONTENT_TYPE     $content_type;
                fastcgi_param  CONTENT_LENGTH   $content_length;
                fastcgi_pass   unix:/run/php5-fpm.sock;
                fastcgi_buffer_size 128k;
                fastcgi_buffers 4 256k;
                fastcgi_busy_buffers_size 256k;
            }

            location ~* \.(ico|css|js|gif|jpe?g|png|svg|woff|eot)(\?[0-9]+)?$ {
                expires max;
                log_not_found off;
            }

            location ~ /\.ht {
                deny all;
            }
    }
Where i neeed used that configurated? Can help me please?

Now my website if i go said me that:

Code: Select all

Forbidden

You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.15 (CentOS) Server at xxxxx.xxx Port 80
Can help me please?

The other website work fine i have 4-5 website and work, but in the last with used that script don´t work.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Nginx Modificated
  • Quote

Post by skurudo » Thu Apr 02, 2015 7:22 pm

What the script?
What system requirements for this script?
What's in error_logs?

If you want just change your confg for nginx for domain, then look in these file -> /home/YOUR-USER/conf/web/nginx.conf
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password