Setup SSL only with user login page to secure username and password

Author Message

Romeo Antony

Tuesday 11 January 2011 1:22:23 am

Hi,

I would like create an ssl user/login page(in user site access) to secure the username and password for sent it as encrypted. But no idea how to configure it only for a login page.

I would like to set up ssl for complete admin site access. But if I use default virtualhost example provided in ezpublish docs , I can't use ssl for admin site access. (since usersite access and admin site access are in single virtualhost with admin site access as alias)

I should create sepererate virtualhost for admin site access instead of alias for admin site access in single virtualhost to use ssl for admin site access? Isn't?

Regards

Romeo

Gaetano Giunta

Tuesday 11 January 2011 5:28:44 am

If you want to set up https for all of the admin siteaccess and only for part of the public siteaccess, using two vhosts is probably your best bet. You'll also have to buy 2 certs in that case, as you need one separate certificate per hostname.

If you feel like experimenting, you could:

  • enable https in apache (set up 2 identical vhosts, one on port 80, one on port 443)
  • set up ssl in the site.ini of the two siteaccesses: SSLZones=enabled, SSLSubtrees[]=/, ModuleViewAccessMode[*/*]=ssl for admin and SSLZones=enabled, ModuleViewAccessMode[user/login]=ssl for front

Principal Consultant International Business
Member of the Community Project Board

Romeo Antony

Tuesday 11 January 2011 10:32:45 pm

Thanks for the reply. This is what I was exactly looking for.

Romeo Antony

Saturday 15 January 2011 3:56:00 am

Hi,

I have tried .but some issues in setting http and https in public site access.

I should set up port 80 for http request in public site access with, port 443 for ssl request in user/loginmodule/view in public site access ? So that is it better to put two virtualhost for public site access and 3rd virtualhost for admin site access to listen https request on port 443. Is this is a right way for my requirement. Any suggestions or ideas will be a help.

<b>NameVirtualHost *:443
NameVirtualHost *:80</b>

<b><VirtualHost *:80>
        ServerName public_siteaccess</b>
        DocumentRoot /var/www/
        
</VirtualHost>

<b><VirtualHost *:443>
        ServerName public_siteaccess</b>

        DocumentRoot /var/www/
        

        SSLEngine on
        SSLCertificateFile /etc/apache1/ssl/apache.pem
</VirtualHost>



<b><VirtualHost *:443>
        ServerName admin_siteaccess</b>

        DocumentRoot /var/www/
        

        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/apache2.pem
</VirtualHost>

Luis Delgado

Monday 28 February 2011 4:47:58 pm

"

If you want to set up https for all of the admin siteaccess and only for part of the public siteaccess, using two vhosts is probably your best bet. You'll also have to buy 2 certs in that case, as you need one separate certificate per hostname.

If you feel like experimenting, you could:

  • enable https in apache (set up 2 identical vhosts, one on port 80, one on port 443)
  • set up ssl in the site.ini of the two siteaccesses: SSLZones=enabled, SSLSubtrees[]=/, ModuleViewAccessMode[*/*]=ssl for admin and SSLZones=enabled, ModuleViewAccessMode[user/login]=ssl for front
"

Gaetano,

this does work but I'm having a pretty strange issue here.

I have configured access in Host Mode.

I finally got the site to use SSL in my admin.mydomian.com site but when I click either on "Design" or the "Settings" Tab or if I click on Roles link in Users I will be taken out to the front_user host address and an Access Deny. Im the only Administrator of the site.

I have EZP 4.4 with EZFLOW. Right now I have EZP in a subdirectory and a Live site runing on root (We are migrating)...

What can I do to fix this issue?

Cheers

GOOD 4 ALL

Luis Delgado

Monday 07 March 2011 8:47:34 am

Bump...

No idea?

Cheers

GOOD 4 ALL

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:11:07
Script start
Timing: Jan 18 2025 05:11:07
Module start 'layout'
Timing: Jan 18 2025 05:11:07
Module start 'content'
Timing: Jan 18 2025 05:11:07
Module end 'content'
Timing: Jan 18 2025 05:11:07
Script end

Main resources:

Total runtime0.6911 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2031152.6563
Module start 'layout' 0.00540.0020 740.859439.5000
Module start 'content' 0.00740.6820 780.3594625.5313
Module end 'content' 0.68940.0016 1,405.890616.0938
Script end 0.6910  1,421.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5179160.0002
Check MTime0.00160.2291160.0001
Mysql Total
Database connection0.00070.097810.0007
Mysqli_queries0.619689.6548680.0091
Looping result0.00070.1070660.0000
Template Total0.659595.420.3298
Template load0.00180.260320.0009
Template processing0.657795.166320.3288
Template load and register function0.00010.016810.0001
states
state_id_array0.00090.129110.0009
state_identifier_array0.00200.284620.0010
Override
Cache load0.00170.2390440.0000
Sytem overhead
Fetch class attribute can translate value0.00070.100030.0002
Fetch class attribute name0.00250.361890.0003
XML
Image XML parsing0.00150.218430.0005
class_abstraction
Instantiating content class attribute0.00000.0037120.0000
General
dbfile0.00100.1506280.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
2content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs