Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Rails site being served by nginx. I want to also have phpmyadmin for the same data. My phpmyadmin is installed in /use/share/phpMyAdmin

I wrote this in in my nginx.conf file:

    server {
     listen 80;
     server_name ;
     root /home/dbadmin/mysite_r_3_1_1/public;
     rails_env development;
     passenger_enabled on;
     client_max_body_size 500M;
     client_body_buffer_size 256k;
    server {
      listen 80;
      server_name ;
      root /usr/share/phpmMyAdmin;
      index index.php;

My regular site is available at and If I go to or the browser says it can't find the server. Also, nothing shows up in my nginx access.log or errors.log either regarding the attempt at I have restarted the nginx server after the update to nginx.conf.

Update 1: also, is there a way of knowing if there is some firewall somewhere preventing me from going to my newly created phpmyadmin. subdomain?

Update 2: I tried to have a subdomain because I don't know how to not have not interfere with the Rails URL routing on the main application.

share|improve this question
Did you add to DNS? – Alan Shutko Oct 19 '12 at 17:27
@AlanShutko, that must be part of it! Ok, just to try it out, can I use an IP address to get to it. Something like phpmyadmin. if is the ip address of – highBandWidth Oct 19 '12 at 18:05
No, you won't be able to just use an IP address. You need to go by hostname since the web server will use the Host parameter to determine which site to show. However, you should be able to edit the hosts file on your OS of choice to try it out locally before changing DNS. – Alan Shutko Oct 19 '12 at 18:17

You must log in to answer this question.

Browse other questions tagged .