This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How To Use Both Http And Https
#7
RE: How To Use Both Http And Https
(09-12-2014, 11:00 PM)TGates Wrote: Please explain your fix so others may use it too!
Domain name For example ( zpanel.tk )
fast normally add domain and dns
thane go to /etc/zpanel/configs/apache
and edit httpd.conf
add line
(


# Now we include the generic VHOST configuration file that holds all the ZPanel user hosted vhost data
Include /etc/zpanel/configs/apache/httpd-xvhosts.conf


)but before


# Now we include the generic VHOST configuration file that holds all the ZPanel user hosted vhost data
Include /etc/zpanel/configs/apache/httpd-vhosts.conf


thane create 1 file in  /etc/zpanel/configs/apache  ( httpd-xvhosts.conf )


Domain name For example ( zpanel.tk )

(((((((((((((




NameVirtualHost *:443

################################################################
# ZPanel generated VHOST configurations below.....
################################################################

# DOMAIN: zpanel.tk
<virtualhost *:443>
ServerName zpanel.tk
ServerAlias zpanel.tk www.zpanel.tk
ServerAdmin admin@zpanel.tk
DocumentRoot "/var/zpanel/hostdata/zadmin/public_html/"
php_admin_value open_basedir "/var/zpanel/hostdata/zadmin/public_html/:/var/zpanel/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"
ErrorLog "/var/zpanel/logs/domains/zadmin/zpanel.tk-error.log"
CustomLog "/var/zpanel/logs/domains/zadmin/zpanel.tk-access.log" combined
CustomLog "/var/zpanel/logs/domains/zadmin/zpanel.tk-bandwidth.log" common
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
AddType application/x-httpd-php .php3 .php
ScriptAlias /cgi-bin/ "/_cgi-bin/"
<location /cgi-bin>
AddHandler cgi-script .cgi .pl
Options ExecCGI -Indexes
</location>
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 403 /_errorpages/403.html
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)
SSLEngine on

SSLCertificateFile /var/zpanel/hostdata/zadmin/ssl_certs/zpanel_tk/zpanel_tk.crt

SSLCertificateKeyFile /var/zpanel/hostdata/zadmin/ssl_certs/zpanel_tk/zpanel_tk.key

SSLCACertificateFile /var/zpanel/hostdata/zadmin/ssl_certs/zpanel_tk/zpanel_tk.ca-bundle
</virtualhost>
# END DOMAIN: zpanel.tk
################################################################



Please Change Some directory and domain You Want

Hope it's Helpful For You....

Thanks...............
Reply
Thanks given by:


Messages In This Thread
How To Use Both Http And Https - by MET4LG0D - 09-12-2014, 04:47 AM
RE: How To Use Both Http And Https - by Me.B - 09-12-2014, 04:54 AM
RE: How To Use Both Http And Https - by MET4LG0D - 09-12-2014, 05:49 AM
RE: How To Use Both Http And Https - by Me.B - 09-12-2014, 07:13 PM
RE: How To Use Both Http And Https - by MET4LG0D - 09-12-2014, 10:49 PM
RE: How To Use Both Http And Https - by TGates - 09-12-2014, 11:00 PM
RE: How To Use Both Http And Https - by MET4LG0D - 09-13-2014, 06:59 PM
RE: How To Use Both Http And Https - by TGates - 09-13-2014, 10:37 PM
RE: How To Use Both Http And Https - by MET4LG0D - 09-14-2014, 10:21 PM
RE: How To Use Both Http And Https - by Jayster - 09-17-2014, 06:42 PM
RE: How To Use Both Http And Https - by Jayster - 09-17-2014, 06:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
https without certificate redirects to panel iraqiboy90 10 22 ,756 02-28-2021, 11:20 AM
Last Post: iraqiboy90
Install guide wget over http? edavidf 5 11 ,184 12-15-2020, 07:07 PM
Last Post: jibranahmed
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 14 46 ,313 08-22-2020, 02:49 PM
Last Post: kenzopoker1

Forum Jump:


Users browsing this thread: 7 Guest(s)