See this for more info
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo/htdocs$ ls -l
total 12
drwxrwxr-x 26 bitnami bitnami 4096 May 25 21:10 hotelcommerce
-rw-r--r-- 1 root root 84 May 15 13:08 index.php
-rw-r--r-- 1 root root 23 May 15 13:08 phpinfo.php
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo/htdocs$ cd ..
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo$ ls
conf htdocs
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo$ cd conf
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo/conf$ ls
nginx-app.conf nginx-prefix.conf nginx-vhosts.conf
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo/conf$ cat nginx-app.conf
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_read_timeout 300;
fastcgi_pass unix:/opt/bitnami/php/var/run/www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo/conf$ cat nginx-prefix.conf
location /demo {
alias "/opt/bitnami/apps/demo/htdocs";
include "/opt/bitnami/apps/demo/conf/nginx-app.conf";
}
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo/conf$ cat nginx-vhosts.conf
server {
listen 80;
root "/opt/bitnami/apps/demo/htdocs";
server_name demo.example.com www.demo.example.com;
include "/opt/bitnami/apps/demo/conf/nginx-app.conf";
}
server {
listen 443 ssl;
root "/opt/bitnami/apps/demo/htdocs";
server_name demo.example.com www.demo.example.com;
ssl_certificate "/opt/bitnami/apps/demo/conf/certs/server.crt";
ssl_certificate_key "/opt/bitnami/apps/demo/conf/certs/server.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
include "/opt/bitnami/apps/demo/conf/nginx-app.conf";
}
bitnami@ip-172-31-33-234:/opt/bitnami/docs/demo/conf$