0% found this document useful (0 votes)
2 views1 page

Wpconductors

This document is a configuration file for an Nginx server. It sets up a server listening on port 80 for the domain 'conductors.local', with a specified root directory and index files. It also includes configurations for handling PHP scripts and denying access to .htaccess files.

Uploaded by

ewill0504
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Wpconductors

This document is a configuration file for an Nginx server. It sets up a server listening on port 80 for the domain 'conductors.local', with a specified root directory and index files. It also includes configurations for handling PHP scripts and denying access to .htaccess files.

Uploaded by

ewill0504
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 1

server{

listen 80;

server_name conductors.local;

root /var/www/html/iziparkweb/izipark-conductores;

index home.php index.php index.html index.htm installer.php;


# autoindex on;
error_log /var/log/nginx/error_log;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php;
}

# pass PHP scripts to FastCGI server


#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+?\.php)(/.+)?$;
fastcgi_read_timeout 300;
}

# deny access to .htaccess files, if Apache's document root


# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}

You might also like