Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
If I turn on htaccess authentication through my dreamhost admin "goodies" - It breaks the authentication in publisher. I get an error "Error performing function. (Code: 401)" when I enable the security, works fine when I disable it. Is there a user name I can add to the "user accounts for this area" to allow htaccess (it requires username password) to allow the publisher service to update? Is there something else I need to set? if so, what?
Thanks
Offline
How about adding an .htaccess file w/o access control inside the ttg-be folder? This way you have access control for your site, but disable it for the ttg-be directory where none of your images/content resides?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
I understand that would probably be a good solution - Here is the current contents of the .htaccess file in the top level directory
### Generated by Dreamhost. DO NOT modify!!! ###
AuthType Basic
AuthUserFile /home/stephens576/stephens-gallery.com/.htpasswd
AuthName "Members Area"
require valid-user
################################################
I have limited knowledge of this. Can you advise on what the .htaccess file content should be in the ttg-be directory?
Thanks again
Offline
Publisher doesn't provide a place to add htaccess authentication credentials. The only location within ttg-be that needs protection is ttg-be/data. That directory should already have in it an .htaccess file with the following contents:
Deny from all
Options All -Indexes
You can test that this is working for you by browsing to /ttg-be/data on your server. You should receive a 503 forbidden. Adding an html file into the directory, e.g. /ttg-be/data/test.html should also result in a 503.
If you really want to add .htaccess to ttg-be, do so in directories other than /ttg-be/publisher. e.g. /ttg-be/admin/
Offline
Ben, the reason to add an .htaccess to ttg-be is because jstephens576 wants to protect his main site. Since Publisher doesn't support authentication credentials, this has to be disabled for ttg-be.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
jstephens576,
The new .htaccces file in ttg-be should just contain this:
Satisfy Any
Or in case you are running on apache 2.4
Require all granted
Once you have added this and Publisher works, check that you can't access /ttg-be/data.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Placing that .htaccess file withing ttg-be/publisher should fix the Publisher authentication without also removing htpasswd protection from the rest of ttg-be (less data).
Offline
I've added basic HTTP authentication support in the Publisher LR plugin. It works well in my testing. Let me know if you're keen on trying it out and I will email you a copy.
Offline
Thanks for the discussion - Ben - I will try your advice below and would be the willing to give for update for the LR plugin a try. email jstephens576@gmail.com
Thanks!
Offline
dl - your .htaccess in the publisher directory above worked well. data still protected
Thank you.
Offline
Pages: 1