You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server {
listen 80 default_server;
server_name localhost;
root /home/www/phprs-restful-master/example/public;
index index.php index.html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location /api {
rewrite ^(/.*)?$ /index.php;
}
location ~ \.php$ {
root /home/www/phprs-restful-master/example/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi.conf;
}
}
Apache
DocumentRoot "/var/www/phprs-restful-master/example/public"
<Directory "/var/www/phprs-restful-master/example/public">
Options Includes ExecCGI FollowSymLinks
AllowOverride All
Require all granted
</Directory>