eftec / routeone Goto Github PK
View Code? Open in Web Editor NEWRoute for PHP
License: GNU Lesser General Public License v3.0
Route for PHP
License: GNU Lesser General Public License v3.0
Hi, I tried this config but it's throwing up a forbidden 403 on the base url and upon entering any other path I get 502 bad gateway. Not sure what the issue is. Here's my config:
server {
listen 127.0.0.1:443 ssl http2;
#listen 127.0.0.1:443 ssl http2; # valet loopback
server_name doc-api.test www.doc-api.test *.doc-api.test;
root /;
charset utf-8;
client_max_body_size 512M;
http2_push_preload on;
location /41c270e4-5535-4daa-b23e-c269744c2f45/ {
internal;
alias /;
try_files $uri $uri/;
}
ssl_certificate "/Users/myUser/.config/valet/Certificates/doc-api.test.crt";
ssl_certificate_key "/Users/myUser/.config/valet/Certificates/doc-api.test.key";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /router.php?req=$document_uri&$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
I'm using valet and this config is used only for my site. Valet creates individual configs for every site. I've made sure that nginx is definitely loading this config. Please help, thank you!
filter_input(INPUT_SERVER, 'REQUEST_METHOD') returns null on shared server.
I suspect it was FastCGI 's fault in server configuration
i am using php 7.0.13
To be consistency with other repositories (such as BladeOne package) on this organisation, this package should require the coding style.
I think we can consider this .php_cs coding style setting.
Hello,
Do you have any documentation for nginx?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.