• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question HostnameLookups

moswak

Regular Pleskian
Hi,

centos 7/ Plesk 12.5 apache/nginx

i want to allow access only for some providers and my htaccess on an only apacheserver works fine like

Order deny,allow
Deny from all
Allow from .t-ipconnect.de

but on the pleskserver this doesnt work.

I set in the Additional Apache directives for the domain:
HostnameLookups On

but this doesnt help. where is my error ?


 
You have both apache/nginx running.
So initially all requests go to nginx and if its static content, it just delivers it.

You have two choices. Either disable nginx and your .htaccess file will just work (since you would only be using apache).

Or if you want any of the benefits of also using nginx (I won't get into that flame war), then you can write your rules to work with nginx, or find another way to do what you want with nginx.
Look at their explanation about .htaccess: https://www.nginx.com/resources/wiki/start/topics/examples/likeapache-htaccess/#

If you want to rewrite your .htaccess rules for nginix, see http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
it covers much of it, but not 100% accurate.
 
When i disable nginx (disable Smart static files processing "If turned off, Apache will process all requests for static files. nginx will only pass requests and responses without modification. Turn off this option only for troubleshooting") the .htaccess doesnt work :-(

or is there another way to disable nginx just for one domain ?
 
Back
Top