Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Installation On QNAP NAS - LAN Works - WAN Issues? 
 
ExpertsInStorage
Jr. Member
 
Total Posts:  2
Joined:  2010-11-29
 

Can anyone shine any light in my dark tunnel? I have managed to install the latest release of Magento onto a QNAP NAS TS-259 Pro+ and everything went great, I have added products changed the theme etc etc its all working great on my local LAN.

However I have a fixed WAN IP address which redirects to my local LAN IP address, when I test from a remote computer the Magento store does not show, it just times out, if I place a test index.html file into the root Magento directory this displays without any problem. I have tried to find a solution to this, and have also tried to alter the apache conf file on the NAS but without success. Maybe I am not altering this file with the right settings? The fact that the index.html file works OK and also the fact that I can access the NAS on its configuration port just confuses me even more?

Any helpful advice gratefully received as I have searched far and wide for a solution.. it’s mad as the install and store configuration was easy, it’s now just the fact that we can’t access my new Magento store from the www only my local LAN!

 
Magento Community Magento Community
Magento Community
Magento Community
 
ExpertsInStorage
Jr. Member
 
Total Posts:  2
Joined:  2010-11-29
 

OK I have figured out that by changing the Base Url settings from within Magento to the IP address of my WAN I can get access to the store from a remote connection, the problem is that now I can by changing the Base Url either get access from the LAN or WAN, my issue is I need access from both, at the same time. I am sure this must be easy its just I can’t figure it out.. anyone?

I have been once again searching the forums today.. Do I need to configure the apache.conf on the QNAP NAS for a multiple IP setup such as this? If yes, can anyone shed some light on how to do it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
guttermonk
Jr. Member
 
Avatar
Total Posts:  7
Joined:  2012-10-13
 

Full disclosure: I’m new to home servers and Magento. Running Ubuntu Server 13.04 with LAMP and Magento Commerce 1.7.0.2 on a dedicated home server. I’ve already configured my server’s static IP, router’s firewall and port forwarding, and am running ddclient on my server to sync my router’s dynamic IP with namecheap.com (my domain name and nameserver provider).

When I use a static index.html page, the page loads from my localhost using my server’s static IP. The page also loads on the WAN using my router’s IP and domain name (through either a proxy website or on my smartphone cell network). Using the proxy website helps avoid loopback timeouts. This narrows down the issue to Magento.

While using http://{localhostIP}/ as my base URL in Magento and loading Magento’s index.php, I was able to access the file locally with my server’s static IP. But, when accessing Magento over the WAN using my domain name or router’s IP, it says “not available, HTTP Error 504: Gateway Timeout”.

So then I tried adding my domain name as a base URL in Magento. Now I can access Magento over the WAN but not the LAN. Did anyone figure out a way to resolve this issue? Is this related to loopback?

 
Magento Community Magento Community
Magento Community
Magento Community
 
guttermonk
Jr. Member
 
Avatar
Total Posts:  7
Joined:  2012-10-13
 

For my fourth experiment, I set the Unsecure Base URL to http://{localhostIP}/ and the Secure Base URL to my domain name. This lets you access Magento locally and you can access the site at https://yourdomainname.com, BUT it does not load the site from http://yourdomainname.com.

So as you can see this is a problem inherent to Magento Community Edition (as of v1.7.0.2). Magento really should have three base URLs: secure, unsecure, and local. Magento CE installed on a home server cannot be accessed from both the LAN and WAN while using both http and https for the WAN connection.

Since Magento doesn’t work on home servers, you’re better off renting server space to avoid the LAN v. WAN IP issue.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top