Skip to content

Instantly share code, notes, and snippets.

View sky93's full-sized avatar
:octocat:
Debugging

Sepehr Mohaghegh sky93

:octocat:
Debugging
View GitHub Profile
@sky93
sky93 / api.example.conf
Last active October 16, 2021 18:58
Map Laravel /api route to api subdomain in Nginx
server {
listen 80;
server_name api.example.com;
location / {
root /usr/share/nginx/LARAVEL_DIR/public;
index index.php;
try_files $uri $uri/ /index.php$is_args$args;
location ~ \.php$ {