Hi,
I have an uncommon environment,I am using pound and varnish in front of Apache (thanks to former site in Plone).
I want to have all the authentication/log in run through SSL. Securepage module cannot do, because it detects that the Apache server is not ding SSL. I tried to enable securepage by hand in settings.php but it resulted in a loop: I am afraid securepage is too intelligent and doing too much testing rather than simply changing from http to https.
Any idea how I can solve my problem (beside rewritting any <form that deals with user login)?
Eventually, pages displayed with https do not load the CSS. I could do with some help on that too. You could see that at https://www.cs.ait.ac.th/drupal7/
I apologize if my questions are naive, but it'd my first day at Drupal.
Best regards,
Olivier
I have to say that I'm likely clueless on exactly how this pound and varnish would work, but here's a simple idea that should work
main pound and varnish runs on port 80 and connects to apache on port 8080
ssl pound and varnish runs on 443 and connects to apache on 8081
you should be able to preserve the ssl chain this way.
most applications can work like this using multiple reverse proxy style setups (they need to rewrite the URL requests
if this part works the next step should be to set an ssl URL inside drupal sites/default/config
hopefully that helps, feel free to get in touch directly if you want our help more.
ps. why not drop to another caching server and use something more versatile? -- Dan Horning
American Digital Services - Where you are only limited by imagination. dan.horning@planetnoc.com :: http://www.americandigitalservices.com 1-518-631-3611 :: PO Box 201, Cohoes, NY 12047
-------- Original Message -------- From: Olivier Nicole olivier.nicole@cs.ait.ac.th Sent: Fri Sep 27 00:16:20 EDT 2013 To: support@drupal.org Subject: [support] SSL Log in with Drupal 7, Pound and Varnish
Hi,
I have an uncommon environment,I am using pound and varnish in front of Apache (thanks to former site in Plone).
I want to have all the authentication/log in run through SSL. Securepage module cannot do, because it detects that the Apache server is not ding SSL. I tried to enable securepage by hand in settings.php but it resulted in a loop: I am afraid securepage is too intelligent and doing too much testing rather than simply changing from http to https.
Any idea how I can solve my problem (beside rewritting any <form that deals with user login)?
Eventually, pages displayed with https do not load the CSS. I could do with some help on that too. You could see that at https://www.cs.ait.ac.th/drupal7/
I apologize if my questions are naive, but it'd my first day at Drupal.
Best regards,
Olivier
Hi
Secure pages will do what you want. But I need to be able to detect the ssl session.
Can you email me off list a copy of phpinfo() so I can see the server variables so I can detect that it is Ssl.
I think that we may need to make some changed to you varnish config to let it tell apache that it us ssl
Gordon.
Sent from my iPhone
On 27 Sep 2013, at 2:22 pm, Olivier Nicole olivier.nicole@cs.ait.ac.th wrote:
Hi,
I have an uncommon environment,I am using pound and varnish in front of Apache (thanks to former site in Plone).
I want to have all the authentication/log in run through SSL. Securepage module cannot do, because it detects that the Apache server is not ding SSL. I tried to enable securepage by hand in settings.php but it resulted in a loop: I am afraid securepage is too intelligent and doing too much testing rather than simply changing from http to https.
Any idea how I can solve my problem (beside rewritting any <form that deals with user login)?
Eventually, pages displayed with https do not load the CSS. I could do with some help on that too. You could see that at https://www.cs.ait.ac.th/drupal7/
I apologize if my questions are naive, but it'd my first day at Drupal.
Best regards,
Olivier
[ Drupal support list | http://lists.drupal.org/ ]
Hi Folks,
In Home » Administration » Structure » Pages, General tab, there is the option "Disable Drupal blocks/regions". This appears pretty straight-forward, but I am still getting the header and footer, at a minimum, none of which I want. Am I misunderstanding what "Disable Drupal blocks/regions" means, or have I made a mistake somewhere else which is overriding this?
I have a content type that displays ' target="_blank" ', and I don't want to spend any real estate for anything but the content. Imagine, for example, a drawing of some kind. Does anybody know how to strip a page of all regions but "content"?
Thanks for the help,
Chris.
I would do a custom page template for that content type--not a node template which still loads inside teh page, but a page template. You'd name it page--node--[content type].tpl.php and it will override both the page and node templates for your content type. You might also need to do a node--[content type].tpl.php, too. I am assuming you are using Drupal 7
On Sep 27, 2013, at 5:48 PM, Chris Miller wrote:
Hi Folks,
In Home » Administration » Structure » Pages, General tab, there is the option "Disable Drupal blocks/regions". This appears pretty straight-forward, but I am still getting the header and footer, at a minimum, none of which I want. Am I misunderstanding what "Disable Drupal blocks/regions" means, or have I made a mistake somewhere else which is overriding this?
I have a content type that displays ' target="_blank" ', and I don't want to spend any real estate for anything but the content. Imagine, for example, a drawing of some kind. Does anybody know how to strip a page of all regions but "content"?
Thanks for the help,
Chris.
[ Drupal support list | http://lists.drupal.org/ ]
From: "LINDA ROMEY" lromey@gmail.com To: support@drupal.org Sent: Friday, September 27, 2013 3:15:32 PM Subject: Re: [support] Node Template Variant
I would do a custom page template for that content type--not a node template which still loads inside teh page, but a page template. You'd name it page--node--[content type].tpl.php and it will override both the page and node templates for your content type. You might also need to do a node--[content type].tpl.php, too. I am assuming you are using Drupal 7
Hi Linda,
Yes, I am using D7. I'll try your suggestion, but I have a few administrative details I don't understand. My content type is called "Music", so I assume I'm writing "page--node--music.tpl.php" and possibly "node--music.tpl.php".
Where do I put these so they will survive updates and upgrades? Where is the best place to start? /modules/system/page.tpl.php and /modules/node/node.tpl.php?
Thanks for the help,
Chris.
Chris, just as you put all contrib modules in sites/all/modules, you should have your themes in sites/all/themes so you'd have sites/all/themes/yourtheme and in yourtheme you'd have a direcotry called templates. Most themes have one, if not, create one. Any template you create or any template you alter (i.e. a template supplied by a module) should go in that folder. Then you don't have to worry about overriding with upgrades
On Sep 27, 2013, at 6:41 PM, Chris Miller wrote:
From: "LINDA ROMEY" lromey@gmail.com To: support@drupal.org Sent: Friday, September 27, 2013 3:15:32 PM Subject: Re: [support] Node Template Variant
I would do a custom page template for that content type--not a node template which still loads inside teh page, but a page template. You'd name it page--node--[content type].tpl.php and it will override both the page and node templates for your content type. You might also need to do a node--[content type].tpl.php, too. I am assuming you are using Drupal 7 Hi Linda,
Yes, I am using D7. I'll try your suggestion, but I have a few administrative details I don't understand. My content type is called "Music", so I assume I'm writing "page--node--music.tpl.php" and possibly "node--music.tpl.php".
Where do I put these so they will survive updates and upgrades? Where is the best place to start? /modules/system/page.tpl.php and /modules/node/node.tpl.php?
Thanks for the help,
Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]
From: "LINDA ROMEY" lromey@gmail.com To: support@drupal.org Sent: Friday, September 27, 2013 3:52:05 PM Subject: Re: [support] Node Template Variant
Chris, just as you put all contrib modules in sites/all/modules, you should have your themes in sites/all/themes so you'd have sites/all/themes/yourtheme and in yourtheme you'd have a direcotry called templates. Most themes have one, if not, create one. Any template you create or any template you alter (i.e. a template supplied by a module) should go in that folder. Then you don't have to worry about overriding with upgrades
Hi Linda,
So, I am using the Bartik theme, for now, and I seek special formatting for a content-type called "Music". If I understand your instructions, then I should copy and subsequently modify:
* /themes/bartik/templates/node.tpl.php ==> /sites/all/themes/bartik/templates/node--music.tpl.php * /themes/bartik/templates/page.tpl.php ==> /sites/all/themes/bartik/templates/page--node--music.tpl.php
So far, so good?
Now my next question. Let's assume that this is going to happen more frequently than just this one content-type. Is there a way to make the template general and applicable to arbitrary content, like assign it to a panel, and then I can put whatever content I need on that panel? I don't know if I will need this template again, but my preference is to create a re-usable template, not a special kind of content-type. Can that be done?
Thanks for the help,
Chris.
As far as I understand if yo uwant to override templates by content type you must have a template file for each type.
In panels you can create a custom page and then create a page template file for the url of your custom page. This takes care of the PAGE display. Then, to get your individual nodes to display in this page, use a url pattern that sets the default page for all the content types you want displayed through this page as the first argument: myhomepage.org/page-name/this-node --- with page-name being the custom page.
If you want the content types to be displayed differently you can still create node template variants for them. As long as the url string begins with the page name each of teh node variants will be rendered through the custom page.
good luck!
On Mon, Sep 30, 2013 at 12:12 PM, Chris Miller cjm@tryx.org wrote:
*From: *"LINDA ROMEY" lromey@gmail.com *To: *support@drupal.org *Sent: *Friday, September 27, 2013 3:52:05 PM *Subject: *Re: [support] Node Template Variant
Chris, just as you put all contrib modules in sites/all/modules, you should have your themes in sites/all/themes so you'd have sites/all/themes/yourtheme and in yourtheme you'd have a direcotry called templates. Most themes have one, if not, create one. Any template you create or any template you alter (i.e. a template supplied by a module) should go in that folder. Then you don't have to worry about overriding with upgrades
Hi Linda,
So, I am using the Bartik theme, for now, and I seek special formatting for a content-type called "Music". If I understand your instructions, then I should copy and subsequently modify:
- /themes/bartik/templates/node.tpl.php ==>
/sites/all/themes/bartik/templates/node--music.tpl.php
- /themes/bartik/templates/page.tpl.php ==>
/sites/all/themes/bartik/templates/page--node--music.tpl.php
So far, so good?
Now my next question. Let's assume that this is going to happen more frequently than just this one content-type. Is there a way to make the template general and applicable to arbitrary content, like assign it to a panel, and then I can put whatever content I need on that panel? I don't know if I will need this template again, but my preference is to create a re-usable template, not a special kind of content-type. Can that be done?
Thanks for the help,
Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]