Can’t able to access ip/phpmyadmin for NGINX using the below method that you’re posted in your documentation.
For Nginx
bash
nano /etc/nginx/conf.d/ip.conf
# Replace the following
location /phpmyadmin/ {
alias /var/www/document_errors/;
return 404;
}
location /phppgadmin/ {
alias /var/www/document_errors/;
return 404;
}
# With the following
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
@eris @sahsanu please give me a solution.
I really appreciate any help you can provide.
Did you edit literally this file /etc/nginx/conf.d/ip.conf
or you edited the right conf file that has your public ip in the file name? Something like /etc/nginx/conf.d/203.0.113.1.conf
If you edited the right conf file, did you restart nginx?
systemctl restart nginx
I have edited it with my IP.conf file only and also restarted the Nginx but it still shows “Page not found”.
Here is my config file ip.conf
server {
listen ***********:80 default_server;
server_name _;
access_log off;
error_log /dev/null;
location / {
root /var/www/html;
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
location /webmail {
alias /var/www/document_errors/;
return 404;
}
location /webmail/ {
alias /var/www/document_errors/;
return 404;
}
location /error/ {
alias /var/www/document_errors/;
}
}
}
Please see the above config.
If you already did the right steps, I don’t know the reason it doesn’t work and I don’t have a machine to test it now.
Anyway, why you want to use the ip instead of the hostname or any other domain?
1 Like
Because I needed to upload more than 100MB files in my database and the server returned an error because of the Cloudflare limit.
The solution which you guys gave for the APACHE works fine but NGINX is not working and I don’t know the reason.
Raphael
September 1, 2024, 8:15am
7
create a hosts entry for the hostname.
1 Like
Hi, as an option to disconnect the domain from CF, just remove the proxy, should help to move the file over 100mb as CF will not limit the size
1 Like
eujian
September 3, 2024, 3:10am
10
So, You should disable cloudflare proxy as cloudflare proxy limit is 100MB
Ok bro let me try this solution.
system
Closed
October 3, 2024, 5:40am
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.