RE: [HOW-TO] DNS-Less preview
07-29-2015, 01:32 AM
(This post was last modified: 10-18-2015, 02:20 PM by TGates.)
I have succeeded to get DNS preview. For review please check this one https://199.180.116.69/~nitipinf/nitip_info/
Using global sentora entry will not work. I configure the httpd config file as informed in https://github.com/sentora/sentora-core/...t-71953710
After you add the code given, you will get error 403 which forbid you to access the web page. So, add new codes below the code given like this:
Using global sentora entry will not work. I configure the httpd config file as informed in https://github.com/sentora/sentora-core/...t-71953710
After you add the code given, you will get error 403 which forbid you to access the web page. So, add new codes below the code given like this:
Quote:ServerName localhost (IP address seems not working on my server so I use localhost)
AliasMatch ^/~([a-zA-Z0-9]+)/?(.*) /var/sentora/hostdata/$1/public_html/$2 Add the code below, just like what TGates use with a little modification on the permission (depends on the Apache version that you use)
<Directory /var/sentora/hostdata>
FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted (Little modification on the permission because of different Apache version)
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_value upload_tmp_dir /var/sentora/temp
</IfModule>
</Directory>