Welcome! Log In Create A New Profile

Advanced

Two ways to access same web application

Posted by freedomlives.net 
Two ways to access same web application
January 16, 2014 12:11PM
I have on my server a variety of gpEasy, Drupal, and Joomla sites running under nginx and php-fpm. For public access to these, it is fine that they are unsecure (non https). But I want the content authors (1-3 people per site) to have secure access to login and upload content, using a CA verified security certificate. The thing is, I don't want to buy security certificates for all of these different sites.

To illustrate what I want, let us say I have these sites:
www.gpeasysite.com
www.drupalsite.com
www.joomlasite.com

I would like for the content authors to be able to access the same sites likes so:
https://ssl.freedomlives.net/gpeasysite.com/
https://ssl.freedomlives.net/drupalsite.com/
https://ssl.freedomlives.net/joomlasite.com/

In my configuration right now I have 4 server entries which have 4 different roots:
ssl root /var/www/ssl
gpeasysite root /var/www/gpeasysite
drupalsite root /var/www/drupalsite
joomlasite root /var/www/joomlasite
test0 root /var/www/test0

and in the ssl entry I would have entries like:
location /test/ {
alias /var/www/test0/;
try_files $uri $uri/ /index.php $uri/index.php;
include php.conf;
}

This doesn't work though, and I'm not entirely sure why.

I actually am using different server names, so below I'm trying to access the URL:
https://ssl.freedomlives.net/test/


I get the error «File not found. »

and in the logs:
2014/01/16 15:26:16 [notice] 26823#0: *1 "^(.+)$" matches "/test", client: 185.23.114.5, server: ssl.freedomlives.net, request: "GET /test HTTP/1.1", host: "ssl.freedomlives.net"
2014/01/16 15:26:16 [notice] 26823#0: *1 rewritten data: "/index.php", args: "/test", client: 185.23.114.5, server: ssl.freedomlives.net, request: "GET /test HTTP/1.1", host: "ssl.freedomlives.net"
2014/01/16 15:26:17 [error] 26823#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 185.23.114.5, server: ssl.freedomlives.net, request: "GET /test HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm.sock:", host: "ssl.freedomlives.net"
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready