Re: PHP Pages

2018-05-23 Thread Aleksandar Lazic
Hi. On 23/05/2018 16:27, mdm100 wrote: My nginx vhost setup will serve .html files but it throws the 503 Bad Gateway error when trying to serve a .php file. This server runs Laravel vhost with not issue, it just will not run plain .php files. Server: Ubuntu 17 server { listen 80; liste

Re: PHP Pages

2018-05-23 Thread mdm100
mdm100 Wrote: --- mdm100 Wrote: --- My nginx vhost setup will serve .html files but it throws the 502 Bad Gateway nginx/1.12.1 (Ubuntu) Gateway error when trying to serve a .php file. This

Re: PHP Pages

2018-05-23 Thread mdm100
mdm100 Wrote: --- > My nginx vhost setup will serve .html files but it throws the 502 Bad Gateway >nginx/1.12.1 (Ubuntu) > Gateway error when trying to serve a .php file. > > This server runs Laravel vhost with not issue, it just will not run >

PHP Pages

2018-05-23 Thread mdm100
My nginx vhost setup will serve .html files but it throws the 503 Bad Gateway error when trying to serve a .php file. This server runs Laravel vhost with not issue, it just will not run plain .php files. Server: Ubuntu 17 server { listen 80; listen [::]:80; server_name convergeone

Re: Cannot create directory alias (with php pages)

2014-08-14 Thread Francis Daly
On Thu, Aug 14, 2014 at 04:04:47PM +0300, Nikolaos Milas wrote: > On 14/8/2014 3:26 μμ, Francis Daly wrote: Hi there, > I have only decided to set: > >fastcgi_param SCRIPT_FILENAME $request_filename; > > following a suggestion from here: > > > http://blog.martinfjordvald.com/2011/01/no

Re: Cannot create directory alias (with php pages)

2014-08-14 Thread Nikolaos Milas
On 14/8/2014 3:26 μμ, Francis Daly wrote: The combination of a regex location, alias, and try_files, probably does not do what you want. I suspect that the 404-with-no-error-log comes from this try_files line. Thank you very much Francis, I removed the try_files line and did the modification

Re: Cannot create directory alias (with php pages)

2014-08-14 Thread Francis Daly
On Thu, Aug 14, 2014 at 02:06:38PM +0300, Nikolaos Milas wrote: > On 13/8/2014 11:42 μμ, Nikolaos Milas wrote: Hi there, > I have modified configuration as follows; the /xprof location works > (i.e. I can access non php files), but all php files cannot be > accessed (message: 404 Not Found). Noth

Re: Cannot create directory alias (with php pages)

2014-08-14 Thread Nikolaos Milas
On 13/8/2014 11:42 μμ, Nikolaos Milas wrote: Now, I want to create an /xhprof location, which includes php code and lives in another disk path (in: /usr/share/xhprof/xhprof_html). I can't make this work... I have modified configuration as follows; the /xprof location works (i.e. I can access

Re: Cannot create directory alias (with php pages)

2014-08-13 Thread Pascale Camille
hi! if it can help i just get a 'redirection cycle' error in a *.conf ... return 301 http:// ... but my problem was solved because i found in etc/nginx some default.conf that made cycling check all etc/nginx/ -- Posted via http://www.ruby-forum.com/.

Cannot create directory alias (with php pages)

2014-08-13 Thread Nikolaos Milas
Hello, I have a hard time trying to make a "directory alias" (in Apache terminology - sorry, I still have a lot to learn on nginx)... I have piwik.example.com, configured to run piwik analytics (it is a php site), and it works fine. I runs under nginx v1.6.1, php-fpm v5.3.3 on an updated Ce