Assalamualikum, Asa kori valo asen.
Recently ami amar akta personal project azure VPS e deploy koresi everything working smoothly but ami cacchi je cpanel er moto akta port e phpmyadmin access korte like
Amar main site amarsite.com and ami amarsite.com:2090 e phpmyadmin access korte casshi but hosse na
Amar NGINX Server config.
#Main Server
server {
listen 80;
listen [::]:80;
server_name amarsite.com;
root /var/www/larapos/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php index.html index.htm;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$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$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
}
location ~ /\.ht {
deny all;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
# For PHPMYADNIN
server {
listen 2090;
server_name amarsite.com;
root /var/www/phpmyadmin;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
}
location ~ /\.ht {
deny all;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
Ami UFW
te port ta add koresi
Chatgpt teu help nisi problem solve hoini