Basically this is the DNS-less preview. It allows your users to view their sites while they wait for their domain to propagate.
Windows:
Apache 2.2:
Apache 2.4:
Need to replace xxx.xxx.xxx.xxx with your server's public IP.
You enter this as a Global ZPanel/Sentora Entry in Module Admin>Apache Admin
This could be customized to use your main panel domain instead of IP
Example usage: http://75.68.13.153/~sscms/supersimplecms_tk/
Windows:
Code:
</virtualhost>
# Add Alias for DNS-Less Previews
<VirtualHost *:80>
ServerName xxx.xxx.xxx.xxx
DocumentRoot c:/zpanel/panel/
AliasMatch ^/~([a-zA-Z0-9]+)/?(.*) c:/zpanel/hostdata/$1/public_html/$2
<Directory c:/zpanel/hostdata>
Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all
DirectoryIndex index.php
<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 c:/zpanel/temp
</IfModule>
</Directory>
Code:
</virtualhost>
# Add Alias for DNS-Less Previews
<VirtualHost *:80>
ServerName xxx.xxx.xxx.xxx
DocumentRoot "/var/sentora/hostdata"
php_admin_value open_basedir "/var/sentora/hostdata:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
AliasMatch ^/~([a-zA-Z0-9]+)/?(.*) /var/sentora/hostdata/$1/public_html/$2
<Directory /var/sentora/hostdata>
Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all
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>
Code:
</virtualhost>
# Add Alias for DNS-Less Previews
<VirtualHost *:80>
ServerName xxx.xxx.xxx.xxx
DocumentRoot "/var/sentora/hostdata"
php_admin_value open_basedir "/var/sentora/hostdata:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
AliasMatch ^/~([a-zA-Z0-9]+)/?(.*) /var/sentora/hostdata/$1/public_html/$2
<Directory /var/sentora/hostdata>
Options FollowSymLinks
AllowOverride All
Require all granted
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>
Need to replace xxx.xxx.xxx.xxx with your server's public IP.
You enter this as a Global ZPanel/Sentora Entry in Module Admin>Apache Admin
This could be customized to use your main panel domain instead of IP
Example usage: http://75.68.13.153/~sscms/supersimplecms_tk/