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
#1
How To Use Both Http And Https
Anyone Can Help Me Please..
How To Use Both Http And Https For My Domain on centos?
I Try This But Its Not Work For Me....

############################################
############################################
Have you tried Module Admin>>Apache Config>>Select VHOST to Override a Virtual Host Setting?

then add your SSL directives?

Do not use "Forward Port 80 to Overriden Port" either "Redirect Permanent"

Just remember NOT to use "Redirect Permanent"
############################################
############################################

Please Help Me SadSadSadSadSadSadSad ...
Thanks
Reply
Thanks given by:
#2
RE: How To Use Both Http And Https
HTTPS will use a direct IP mainly. you can't already have more than a domain.

Could you explain what you did?

Did you check docs?

http://docs.sentora.org/?node=20
Reply
Thanks given by:
#3
RE: How To Use Both Http And Https
(09-12-2014, 04:54 AM)Me.B Wrote: HTTPS will use a direct IP mainly. you can't already have more than a domain.

Could you explain what you did?

Did you check docs?

http://docs.sentora.org/?node=20

I want 2 set Up My Domain With Both Http and Https..
But Zpanel Allow Me Only one For example My domain Is www.zpanel.ga

Module Admin>>Apache Config>>Select VHOST to Override a Virtual Host Setting?

then add your SSL directives

Do not use "Forward Port 80 to Overriden Port

############
With This config
############
With Https Is Work = ( https://www.zpanel.ga )
With Http Is Not Work = After open http://www.zpanel.ga Showing Control panelSadSadSadSadSadSadSad
So Anyone Can Fix It?

Thanks.....SadSadSadSadSadSadSad
Reply
Thanks given by:
#4
RE: How To Use Both Http And Https
you can use both but it will require some knowledge of apache configuration as you will need to setup another host manually mainly...
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#5
RE: How To Use Both Http And Https
(09-12-2014, 07:13 PM)Me.B Wrote: you can use both but it will require some knowledge of apache configuration as you will need to setup another host manually mainly...

Yap Today I Already Complete successfully......Big GrinBig GrinBig GrinBig GrinBig GrinBig GrinBig GrinBig GrinBig GrinBig Grin
Reply
Thanks given by:
#6
RE: How To Use Both Http And Https
Please explain your fix so others may use it too!
Reply
Thanks given by:
#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:
#8
RE: How To Use Both Http And Https
Thanks for explaining.
Reply
Thanks given by:
#9
RE: How To Use Both Http And Https
TGates I Need Some Help From You?SadSadSadSadSadSadSad



Please Checked ( http://forums.sentora.org/showthread.php?tid=267


Hope You Help ME..


Thanks....
Reply
Thanks given by:
#10
RE: How To Use Both Http And Https
In order for this to work both accessible in port 80 and port 443, you need to add a custom SSL-Vhost manually (this is not ZPanel or Sentora Default Vhost Config)

You can try this if you are planning to give you panel accessible to port 80 and 443:
1) Do not touch the original VHOST
2) Create a Vhost file called: http-ssl-vhost.conf (or whatever file name you want as long as it is .CONF)
3) Insert or Add your SSL Cert and Key in your "http-ssl-vhost.conf"
4) Open your /etc/httpd/httpd.conf
and insert this:
#CUSTOM
SSL CONFIGURATION
Include /etc/zpanel/configs/apache/httpd-ssl-vhosts.conf
that's the custom SSL-Vhost file you made from step 2.
5) Make sure everything is correctly set... File, Path, and Configuration of your Cert and Key files.
6) Final step is to restart your Apache Service "service httpd restart" or Ubuntu "/etc/init.d/apache2 restart"

HTH
get top priority support for Sentora  "Sentora Premium Support"
Domain Name Promos @ digix1 domains

Reply
Thanks given by:


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

Forum Jump:


Users browsing this thread: 2 Guest(s)