Note that there are some explanatory texts on larger screens.

plurals
  1. POnginx hanging for subdomain
    primarykey
    data
    text
    <p>I'm having some trouble getting nginx to work on a subdomain. I have two <code>conf</code> files in <code>/etc/nginx/conf.d/</code> as follows (some details in the first redacted):</p> <p><code>mydomain.conf</code>: the site proper, <code>server_name</code> of <code>mydomain.com</code> and <code>www.mydomain.com</code>:</p> <pre><code>server { listen 80; root /var/www/sites/mydomain; index index.php; server_name mydomain.com www.mydomain.com; access_log /var/log/nginx/mydomain.access.log; error_log /var/log/nginx/mydomain.error.log; ... } </code></pre> <p><code>phpmyadmin.conf</code>: </p> <pre><code>server { listen 80; root /var/www/sites/phpmyadmin; index index.php; server_name pma.mydomain.com; access_log /var/log/nginx/phpmyadmin.access.log; error_log /var/log/nginx/phpmyadmin.error.log; location / { index index.php; } location ~* \.php$ { try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } </code></pre> <p>}</p> <p>Currently, <code>/var/www/sites/phpmyadmin</code> just contains an <code>index.php</code> with <code>&lt;?php phpinfo(): ?&gt;</code> in it and nothing else. This is on an EC2 instance and I'm trying to load the pages from another computer, wherein both <code>mydomain.com</code> and <code>pma.mydomain.com</code> are set to its IP address in my <code>/etc/hosts</code>.</p> <p>Navigating to <code>mydomain.com</code> works perfectly fine, PHP works, etc. However when I navigate to the subdomain, it hangs. For any other subdomain the connection immediately fails (there are no DNS records). But for <code>pma</code> it simply doesn't load.</p> <p>My log files for <code>pma</code> are empty and unhelpful. I have no idea how to debug this silent failure and it's driving me insane.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload