Forums / Setup & design / Installing SSL for a full website on ezpublish

Installing SSL for a full website on ezpublish

Author Message

Gérard Bouchard

Thursday 24 January 2008 6:03:58 am

Hi all,

I'm working on a web server running ubuntu 7.10 & apache 2.0. This server has one website (based on ezpublish 3.9.2) only.

When you enter the website, the first page asks you to log in (with login/pass). Since I've setup SSL, it's impossible to login. Whatever the login/pass is, the website says that we have a bad username or password.

Here is my config file of the website with the vhosts (apache 2.0) :

NameVirtualHost *:443

<VirtualHost *:80>
	DocumentRoot /var/www/
	ServerName localhost
	Redirect / https://localhost/
</VirtualHost>

<VirtualHost *:443>
	ServerName localhost
	DocumentRoot /var/www/
	SSLEngine on
	SSLCertificateFile /etc/apache2/server.crt
	SSLCertificateKeyFile /etc/apache2/server.key
</VirtualHost>

I edit the /settings/override/site.ini.append.php file, here it is :

<?php 

#?ini charset="utf-8"?

[SiteSettings]
SSLPort=443

[SSLZoneSettings]
SSLZones=enabled

/*
[ExtensionSettings]
ActiveExtensions[]=ezdhtml
ActiveExtensions[]=ezodf

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=plain_site
SiteList[]=plain_site
SiteList[]=plain_site_lang2

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=plain_site
AvailableSiteAccessList[]=plain_site_admin
AvailableSiteAccessList[]=plain_site_lang2
MatchOrder=uri
HostMatchMapItems[]

[MailSettings]
Transport=SMTP
TransportServer=SR-INF21.netfective.com
TransportUser=
TransportPassword=
AdminEmail=bluage.support@netfective.com
EmailSender=

[DebugSettings]
DebugOutput=disabled
DebugRedirection=disabled

[TemplateSettings]
Debug=disabled
ShowXHTMLCode=disabled
ShowUsedTemplates=disabled

[DatabaseSettings]
SQLOutput=disabled
SiteAccessList[]=plain_site
SiteAccessList[]=plain_site_admin
SiteAccessList[]=plain_site_lang2
*/ ?>

I just uncommented the first line (which was #?ini charset="utf-8"?) and added the SSL Lines. I want to have SSL for all the pages of the websites, how do I do ? Have I to put all the zones in lines like "ModuleViewAccessMode[user/login]=ssl" (but how to list all the zones ?)

Thanks for your support :)

Regards,

Gérard

Gérard Bouchard

Friday 25 January 2008 12:21:28 am

It's ok, I didn't modify the site.ini file (SSLZones=disabled is marked)
Here is my website config file (apache2.0) :

NameVirtualHost *:443

<VirtualHost *:80>
	DocumentRoot /var/www/
	ServerName localhost
	Redirect / https://localhost/
</VirtualHost>

<VirtualHost *:443>
	ServerName localhost
	DocumentRoot /var/www/
	SSLEngine on
	SSLCertificateFile /etc/apache2/server.crt
	SSLCertificateKeyFile /etc/apache2/server.key
</VirtualHost>

And now, as soon as I enter the website by taping http://localhost/mywebsite, https activates and I can move on all my website based on ezpublish with SSL.

Noicokuna Niemoge

Monday 26 January 2009 12:14:29 am

I've got another problem with ssl. When I enable it, the login redirection redirects me to:

www.mysite.com/index.php?/index.php?/siteaccess/

... is it a known bug?

Shiki soku ze ku...

eZ debug

Timing: Jan 19 2025 11:52:27
Script start
Timing: Jan 19 2025 11:52:27
Module start 'content'
Timing: Jan 19 2025 11:52:27
Module end 'content'
Timing: Jan 19 2025 11:52:27
Script end

Main resources:

Total runtime0.4084 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 589.1016180.8125
Module start 'content' 0.00890.0061 769.914193.9453
Module end 'content' 0.01500.3934 863.8594524.3750
Script end 0.4083  1,388.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.8808200.0002
Check MTime0.00130.3250200.0001
Mysql Total
Database connection0.00110.258110.0011
Mysqli_queries0.353286.47961410.0025
Looping result0.00200.50131390.0000
Template Total0.392996.210.3929
Template load0.00090.211810.0009
Template processing0.392095.984210.3920
Override
Cache load0.00060.143710.0006
Sytem overhead
Fetch class attribute can translate value0.00080.196810.0008
XML
Image XML parsing0.00030.063510.0003
General
dbfile0.00300.7285200.0001
String conversion0.00000.002530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs