ubuntuusers.de

phpmyadmin redirects after login to page 404

Status: Ungelöst | Ubuntu-Version: Ubuntu 16.04 (Xenial Xerus)
Antworten |

taifunorkan2

Anmeldungsdatum:
27. September 2017

Beiträge: Zähle...

Hello,

Ich arbeite mit nginx webserver. Erhalte aber nach dem Login in phpmyadmin eine Fehlermeldung durch den Browser.

1
404 Not Found nginx/1.10.3 (Ubuntu)

Ich werde auf folgende Seite geleitet: http://[IP]/index.php?token=43d2631c5c65b87141cb0f1c1e1a4214&phpMyAdmin=paiics4g77l7egkdn9idd6kvg2ckt210

Richtig wäre wohl: http://[ip]/phpmyadmin/index.php?token=43d2631c5c65b87141cb0f1c1e1a4214&phpMyAdmin=paiics4g77l7egkdn9idd6kvg2ckt210

(wobei [ip] meine Internetadresse ist und nicht localhost)

Betätige ich die Zurücktaste in meinem Browser (History back) dann gelange ich über diesen Umweg in die PHP MyAdmin Controlumgebung und habe Zugang zu allen Funktionen.

Trotzdem würde ich gern den Fehler beheben.

Ich wäre für jede Unterstützung sehr dankbar.

Taifun

Mokkujin

Anmeldungsdatum:
2. Mai 2008

Beiträge: 389

Wohnort: Hannover

was sagen denn die Logs ?

Into_the_Pit Team-Icon

Ehemalige
Avatar von Into_the_Pit

Anmeldungsdatum:
25. Juni 2008

Beiträge: 9490

Wohnort: Bochum

Mokkujin schrieb:

was sagen denn die Logs ?

Und wie sieht die Config von nginx aus für die Seite?

taifunorkan2

(Themenstarter)

Anmeldungsdatum:
27. September 2017

Beiträge: 7

Hallo Mokkujin,

in den Logs finde ich keine Hinweise.

Viele Grüße!

taifunorkan2

(Themenstarter)

Anmeldungsdatum:
27. September 2017

Beiträge: 7

Das hier ist die nginx sites enabled "default":

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Default server configuration
#
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	# SSL configuration
	#
	# listen 443 ssl default_server;
	# listen [::]:443 ssl default_server;
	#
	# Note: You should disable gzip for SSL traffic.
	# See: https://bugs.debian.org/773332
	#
	# Read up on ssl_ciphers to ensure a secure configuration.
	# See: https://bugs.debian.org/765782
	#
	# Self signed certs generated by the ssl-cert package
	# Don't use them in a production server!
	#
	# include snippets/snakeoil.conf;

	root /var/www/html;
	index index.php index.html index.htm index.nginx-debian.html;
	# Add index.php to the list if you are using PHP
	#index index.html index.htm index.nginx-debian.html;
	# oslt wegen error 404
	#Alias /phpmyadmin "/usr/share/phpmyadmin/"
	#Alias /phpmyadmin "/usr/share/phpmyadmin/"
	#<Directory "/usr/share/phpmyadmin/">
	#	Order allow,deny
	#   Allow from all
	#	Require all granted
	#</Directory>
	# oslt Ende
	server_name _ 192.168.178.25;




	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri $uri/ =404;
	}
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }

    location ~ /\.ht {
        deny all;
    }

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	#location ~ \.php$ {
	#	include snippets/fastcgi-php.conf;
	#
	#	# With php7.0-cgi alone:
	#	fastcgi_pass 127.0.0.1:9000;
	#	# With php7.0-fpm:
	#	fastcgi_pass unix:/run/php/php7.0-fpm.sock;
	#}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	#location ~ /\.ht {
	#	deny all;
	#}
}


# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
#server {
#	listen 80;
#	listen [::]:80;
#
#	server_name example.com;
#
#	root /var/www/example.com;
#	index index.html;
#
#	location / {
#		try_files $uri $uri/ =404;
#	}
#}

Viele Grüße!

Bernhard

Antworten |