nginx - phpmyadmin and ssl

speedway

Well-known member
OK, next problem

Updated nginx to 1.2.8 along with php to 5.3.23, all via the latest centminmod script. Along the way the script updated openssh on my Centos system (a Servint VPS). Problem is that now ssl and phpmyadmin do not work.

Have tried regenerating the ssh keys and cert etc but still no go. Does anyone have a conf file that works with phpmyadmin and nginx under ssl? I would just like to compare what I have with someone elses.

Cheers
 
My pertinent section for SSL out of mine on debian
Code:
server {
server_name twowheeldemon.com;
listen 443;
ssl on;
ssl_certificate /etc/nginx/conf/server.crt;
ssl_certificate_key /etc/nginx/conf/server.key;
 
location /****sandgrins {
auth_basic "Restricted";
                auth_basic_user_file /etc/peewords/pass.word;
              root /usr/share/;
              index index.php index.html index.htm;
              location ~ ^/justforgiggles/(.+\.php)$ {
                      try_files $uri =404;
                      root /usr/share/;
                      fastcgi_pass 127.0.0.1:9000;
                      fastcgi_index index.php;
                      fastcgi_param SCRIPT_FILENAME
                      $document_root$fastcgi_script_name;
                      include /etc/nginx/fastcgi_params;
              }
              location ~*
              ^/****sandgrins/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$
              {
                      root /usr/share/;
              }
        }
        location /****sandgrins {
              rewrite ^/* /****sandgrins last;
        }
}

hehehehe... my directory name for my phpmyadmin got censored. :rolleyes:
 
How can you apply SSL across all domains?

Code:
# HTTPS server
#
server {
    listen      443 ssl;
    server_name  localhost;
 
    ssl                  on;
    ssl_certificate      /etc/nginx/server.crt;
    ssl_certificate_key  /etc/nginx/server.key;
 
    ssl_session_timeout  5m;
 
    ssl_protocols  SSLv2 SSLv3 TLSv1;
    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;
 
#    location / {
#        root  usr/share/nginx/html;
#        index  index.html index.htm;
#    }
}

I was trying something like that above. Does it not work this way? Do I need to make SSL config edits for each domain affected? Thanks for any input... There is more NGINX support here than any other website... xenforo should just make their own NGINX area. (More traffic More sales? :P )
 
How can you apply SSL across all domains?

Code:
# HTTPS server
#
server {
    listen      443 ssl;
    server_name  domain1.com domain2.com domain3.com domain4.com;

I was trying something like that above. Does it not work this way? Do I need to make SSL config edits for each domain affected? Thanks for any input... There is more NGINX support here than any other website... xenforo should just make their own NGINX area. (More traffic More sales? :p )

Would not changing to list all your domains work, or are you wanting it on everything? I don't mess much with SSL (since the key file I use is a private made on the box itself) but aren't the official ones tied to the individual domain for each public key file?
 
i listed all of my domains but nothing is catching...


I see 443 listening... but still only catching on one site. Thanks for the mind reboot, I will keep trying with different configs.

Code:
tcp        0      0 0.0.0.0:443                0.0.0.0:*                  LIST
 
i listed all of my domains but nothing is catching...


I see 443 listening... but still only catching on one site. Thanks for the mind reboot, I will keep trying with different configs.

Code:
tcp        0      0 0.0.0.0:443                0.0.0.0:*                  LIST
Port 443 open? By default my iptables rule I set up had specifically closed it since I wasn't using it. I had to remember to go back in and open it back up.
 
Top Bottom