Nginx Modificated
Posted: 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:
Where i neeed used that configurated? Can help me please?
Now my website if i go said me that:
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.
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;
}
}
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
The other website work fine i have 4-5 website and work, but in the last with used that script don“t work.