Welcome! Log In Create A New Profile

Advanced

Re: PHP Pages

May 23, 2018 04:31PM
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
> plain .php files.
>
> Server: Ubuntu 17
>
> server {
> listen 80;
> listen [::]:80;
>
> server_name convergeone.hudsonstreet.us;
>
> root /var/www/html/convergeone;
> index index.html index.php;
>
> location / {
> try_files $uri $uri/ =404;
> }
> location ~ \.php$ {
> include snippets/fastcgi-php.conf;
> include fastcgi_params;
> fastcgi_pass unix:/run/php/php7.0-fpm.sock;
> fastcgi_param SCRIPT_FILENAME
> /var/www/html/example.com/convergeone$fastcgi_script_name;
> }
> }
Subject Author Posted

PHP Pages

mdm100 May 23, 2018 04:27PM

Re: PHP Pages

mdm100 May 23, 2018 04:31PM

Re: PHP Pages

mdm100 May 23, 2018 04:32PM

Re: PHP Pages

Aleksandar Lazic May 23, 2018 04:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready