Jump to content

Maintenance IP


Recommended Posts

Hello,

I have the "Enable Store" setting set to "no" and I have my static IP listed in the Maintenance IP section. However when I go to the front end it gives me the Maintenance page. I have read several posts on the forums about version 1.25 and earlier versions having issue with the Maintenance IP setting, but my understanding is that 1.3.1 should work fine.

I have checked init.php and compared to suggestions in various posts and it seems fine. I have also reinstalled the cart a few times to see if that would help. The only thing semi unique about the server it is hosted on is that it has suphp so none of the folders have "777" permissions like the install instructions mention. Would that affect the Maintenance IP in anyway?

Can someone give me a list of what the "usual suspects" might be for this problem and where I can start looking?


Thanks in advance for your time,

Scott

Link to comment
Share on other sites

I haven't had any problems with the feature. Are you sure that you are entering your public IP, not private IP address in the maintenance field? If you get your IP address from "ipconfig", you may be getting your private IP. You should go to a website like whatismyip.org to get your public IP.

Link to comment
Share on other sites

Positive about my IP Rocky,

I have a static IP, a block of 5 of them, I cant access the front end from any of them, regardless of how I enter them, I have tried each IP by itself, and then all 5 separated by commas etc. But I thank you for your prompt reply.

I saw in one post that file permissions might conflict with the maintenance page thats why I was asking about suphp possibly causing an issue.

Two other threads interest me,

The first:

http://www.prestashop.com/forums/viewthread/13661/general_discussion/multiple_maintenance_ips

mentions adding this code manually, I would try it except I don't want to screw anything up in the newest version.

$ip1='102.134.234.123';
$ip2='123.123.123.123';
if (isset($maintenance) AND (!isset($_SERVER['REMOTE_ADDR']) OR $_SERVER['REMOTE_ADDR'] != $ip1 OR $_SERVER['REMOTE_ADDR'] != $ip2))



Also saw this post, but it is very old:

http://www.prestashop.com/forums/viewthread/5589/general_discussion/solved_disabled_shop_maintenance


Any other thoughts or suggestions would be wonderful,


Scott

Link to comment
Share on other sites

  • 1 month later...

I am having the exact same problem with version 1.3.1.1.

Cannot get into the Front Office, even though my global IP is entered as the Maintenace IP. I have no idea how to fix this and it's really annoying little problem.

Looks like the maintenance checks have been moved into init.php from header.php.

Link to comment
Share on other sites

  • 1 year later...

Hi y'all!

 

The problem you are experiencing is that index.html is set as the default document for the page. Either you rename the index.html-page to something else or configure your web server to use index.php as default document.

 

//Mike

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...