<pre><a href="http://nginx.org/en/docs/http/configuring_https_servers.html" rel="nofollow"><br></a></pre>
<br>I tried following steps below link, after  i access PHP application ex: <a href="http://loclahost/php/" target="_blank">https://loclahost/phpapp1/</a> asking save as  index.php <br><br><pre><br><a href="http://nginx.org/en/docs/http/configuring_https_servers.html" rel="nofollow">http://nginx.org/en/docs/http/configuring_https_servers.html</a><br>
<br>This sample my sample nginx config file<br>upstream railsapp1 {<br>  server <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a>;<br>  server <a href="http://127.0.0.1:9001/" target="_blank">127.0.0.1:9001</a>;<br>
}<br>upstream<br> railsapp2 {<br>  server <a href="http://127.0.0.1:9010/" target="_blank">127.0.0.1:9010</a>;<br><br>  server <a href="http://127.0.0.1:9011/" target="_blank">127.0.0.1:9011</a>;<br>}<br>   <br>server {<br>
    listen               443;<br>    server_name          <a href="http://mydomain.com">mydomain.com</a>;<br>    ssl                  on;<br>    ssl_certificate      mydomain_com.crt;<br>    ssl_certificate_key  mydomain_com.key;<br>
    ssl_protocols        SSLv3 TLSv1;<br>    ssl_ciphers          HIGH:!ADH:!MD5;<br>    <br>}<br><br>  location = / { rewrite ^ <br>/phpapp1/ permanent; }<br>  location ~ ^/phpapp1/.*\.php$ {<br><br>    root /srv/http/php;<br>
    fastcgi_pass <a href="http://127.0.0.1:9100/" target="_blank">127.0.0.1:9100</a>;<br>    <br>fastcgi_index index.php;<br>    fastcgi_param SCRIPT_FILENAME <br>$request_filename;<br>    include fastcgi_params;<br>  }<br>
<br>  location /phpapp1/ {<br>    root /srv/http/php;<br>    index <br>index.php;<br>    try_files $uri $uri/ /phpapp1/index.php;<br>  }<br>  <br>location = /phpapp1 { rewrite ^ /phpapp1/ permanent; }<br>  location <br>@railsapp1 { proxy_pass <a href="http://railsapp1/" target="_blank">http://railsapp1</a>;<br>
 }<br><br>  location = /railsapp1 { rewrite ^ /railsapp1/ permanent; }<br>  <br>location /railsapp1/ {<br>    alias /srv/http/rails/railsapp1/</pre><div id=":1gj" class="ii gt">public/;<br>   
 try_files $uri @railsapp1;<br>    expires max;<br>  }<br>  location 
@railsapp2 { proxy_pass <a href="http://railsapp2/" target="_blank">http://railsapp2</a>;
 }<br>
  location = /railsapp2 { rewrite ^ /railsapp2/ permanent; }<br>  
location /railsapp2/ {<br>    alias /srv/http/rails/devel/railsapp2/public/;<br>   
 try_files $uri @railsapp2;<br>    expires max;<br>  }<br>  location 
/whatever/ {<br>
    root /srv/temp;<br>    autoindex on;<br>  }<br>  location 
/apacheapp/ { proxy_pass <a href="http://127.0.0.1:9200/" target="_blank">http://127.0.0.1:9200</a>;
 }<br>}</div><pre><br></pre><br><br clear="all"><br>R.Karthik<br>