Lrnt
Basic Pleskian
Hi,
Until now, I have a "website" that store files on "my.project"
"my.project" is my real domain name (subscription) in Plesk, it means that "my.project" is not directly accessible through the internet.
I have a domain (eg: coolsite.com) with email account.
I set a Apache directive to change root location to "my.project" with this:
I want to enable HTTP/2 but it is not possible on Plesk without Nginx.
So I tried to use Nginx but I can not redefine root location with Nginx directive (not permitted).
With nginx reverse proxy mode, coolsite.com display my.project (this is what I want) but I have got 404 error on CSS, picture or files with rewrite rules in htaccess. Like root was not good... I hope you understand...
As far as I need real email account on coolsite.com, I can not use domain alias.
Do you have any idea on how to achieve this?
HTTP/2 with Apache would be perfect but it is not possible on Plesk...
Thanks.
Lrnt.
Until now, I have a "website" that store files on "my.project"
"my.project" is my real domain name (subscription) in Plesk, it means that "my.project" is not directly accessible through the internet.
I have a domain (eg: coolsite.com) with email account.
I set a Apache directive to change root location to "my.project" with this:
Code:
DocumentRoot "/var/www/vhosts/my.project/httpdocs"
<Directory /var/www/vhosts/my.project/httpdocs>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/my.project/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
</Directory>
I want to enable HTTP/2 but it is not possible on Plesk without Nginx.
So I tried to use Nginx but I can not redefine root location with Nginx directive (not permitted).
With nginx reverse proxy mode, coolsite.com display my.project (this is what I want) but I have got 404 error on CSS, picture or files with rewrite rules in htaccess. Like root was not good... I hope you understand...
As far as I need real email account on coolsite.com, I can not use domain alias.
Do you have any idea on how to achieve this?
HTTP/2 with Apache would be perfect but it is not possible on Plesk...
Thanks.
Lrnt.