Prev Previous Post   Next Post Next
  #1  
Old 23rd March 2013, 01:24
breakaway breakaway is offline
Junior Member
 
Join Date: Jun 2007
Posts: 21
Thanks: 2
Thanked 2 Times in 1 Post
Exclamation Simple phpmyadmin question

Hello gentlemen,

My setup is an Ubuntu 12.10 system.

I have used this guide to successfully set up the server. However I have a problem with phpMyAdmin.



Page #4 of the guide states to add a specific nginix directive inside ISPConfig to enable phpMyAdmin for a specific site.

Now being security concious I only want phpMyAdmin to work over https.

So I have added the following code snippet

Code:
location /phpmyadmin {
       root /usr/share/;
       index index.php index.html index.htm;
       location ~ ^/phpmyadmin/(.+\.php)$ {
       try_files $uri =404;
       root /usr/share/;
       fastcgi_pass unix:/var/run/php5-fpm.sock;
       fastcgi_param HTTPS on; # <-- add this line
       fastcgi_index index.php;
       fastcgi_param SCRIPT_FILENAME $request_filename;
       include /etc/nginx/fastcgi_params;
       fastcgi_param PATH_INFO $fastcgi_script_name;
       fastcgi_buffer_size 128k;
       fastcgi_buffers 256 4k;
       fastcgi_busy_buffers_size 256k;
       fastcgi_temp_file_write_size 256k;
       fastcgi_intercept_errors on;
       }
       location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
       root /usr/share/;
       }
}
location /phpMyAdmin {
       rewrite ^/* /phpmyadmin last;
}
As per the guide says.

However, I have found that even after saving the above directive into ISPConfig for that site and reloading (and also restarting) nginx, phpMyAdmin is accessible via http on port 8081! If I try HTTPS port 8081 it won't work - firefox produces a

Code:
SSL received a record that exceeded the maximum permissible length.
error.

How can I force this (phpmyadmin) to ONLY work over HTTPS?

Thanks in advance!
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Question: CentOS Server destinedjagold Server Operation 1 6th September 2012 19:05
phpMyAdmin and pure-ftpd operation question RKB Server Operation 4 28th November 2010 21:52
Simple question... I think - re: multiple domains. lidocayne Installation/Configuration 1 17th July 2006 11:53
perfect setup suse 10 - phpmyadmin & mysql question reddog Server Operation 7 17th June 2006 12:59
phpMyAdmin question? ctroyp Installation/Configuration 1 20th March 2006 23:19


All times are GMT +2. The time now is 19:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.