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 configuration issue

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
random5326
Posts: 1
Joined: Thu May 26, 2016 12:21 pm

Nginx configuration issue
  • Quote

Post by random5326 » Thu May 26, 2016 12:26 pm

I'm trying to configure nginx so it will also execute aspx files as php but after I add:

Code: Select all

location ~ \.aspx$ {
	fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    if (!-f $document_root$fastcgi_script_name) {
        return  404;
    }
			
    fastcgi_pass    127.0.0.1:9002;
    fastcgi_index   index.php;
    include         /etc/nginx/fastcgi_params;
}
I get an access denied error on aspx files, can you please tell what is the problem?
Top

Elizine
Posts: 50
Joined: Wed Aug 12, 2015 12:11 pm
Contact:
Contact Elizine
Website

Re: Nginx configuration issue
  • Quote

Post by Elizine » Tue May 31, 2016 8:49 am

Try this code -

Code: Select all

location ~ \.php$ {
    include /etc/nginx/fcgi_params; #or whatever you named it
    fastcgi_pass  127.0.0.1:9000;
}
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