Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Inside my router, outside my router.


Guest

Recommended Posts

Posted

Apache webserver, running on my own Fedora box, here at the house. MySql and PHP working fine.

I can't get the URL redirects to work on both sides of the router. I have a static IP assigned by my cable provider. I have a registered domain name, I have URL forwarded to the IP at port 7777. The router redirects to the internal 192.168... at port 7777.

 

I can run the install, and I can manually 'adjust' the configure.php files. What I can't do, is get oscommerce working on both the outside and inside.

 

dir= /var/www/html/catalog Url = www.domain.com/catalog

 

There are more details needed, I'm sure.. but what is the secret to making this work inside and outside the router. No, I'm not prepared to set up an internal DNS server.

 

What to do?

Posted

Unlesss you have your site listed in the DNS record somewhere there is no way for you to have your domain found. Whether internal or externaly there is no way around it.

 

Otherwise the only way would be to go to the site via direct IP http://192.168.0.1

 

Why are you port forwarding to 7777? Did you reconfigure Apache to listen to this port? Standard port for webservice is 80 and 443 for SSL.

Posted

I'm port forwarding to 7777 because all ports below 2400 are blocked.. I'm supposed to be using the static IP for VPN usage to work only... but I'd rather use it to host a website ;)

 

None the less, yes, my httpd.conf file has Listen 7777 configured, although I can easily have it listen on port 80.

 

I have a gallery, and a forum on the website as well. The gallery is pretty much self contained, but the forum is a php / mysql type forum. I had to alter a few paths to get the forum to work both internally (using http://192.168...) and externally, using my 'outside' IP address, of course, both are followed with the :7777

 

So.... I want osCommerce to do the same.. be available on the outside, but where I can administer it from the inside...

 

How??

Posted

Sorry.. just wanted to make this an active post.. any help would be appreciated...

  • 2 weeks later...
Posted

If you don't want to setup DNS, I would try setting the domain name in your host file. That way you can address your web server by the same name for internal and external.

 

Like

 

192.168.x.x www.mydomain.com

 

This way you can put www.mydomain.com in your configure.php file.

while (!succeed) {try()};

 

GMT -6:00

Posted

Do you say that you currently have a forum/gallery website up and running? If so, can you access it from the outside through the router ok? Do you use a domain name or IP to access these? If you can get to these or a generic index.html from the outside on whatever port you have fwd'd, you should also be able to see an osC installation just fine. Unless you are running a true domain name, and DNS (yours or otherwise) points right to your static IP correctly, you may have to config your install with IP's (instead of domain.tld) in configure.php, and you may have to use your external IP for this. When a redirect occurs and tells (example) my pc to go to mojomike.com, I resolve mojomike.com to your EXT-IP, and I can point back to your ported server. If your system is using EXT.EXT.EXT.IP instead of mojomike.com, I can still find you after redirects. If your system uses 192.168.INT.... as your server address (in configure.php), a redirect will tell my pc to go find this_or_that.php at 192.168.INT....., which will have me looking at "my" firewalled network.

Can you change your system so your server acts as it's own firewall with your EXT.IP on eth0 and your firewalled VPN inside on eth1 (192.168...)? This way your router is moot, the server becomes your router, is visible on the outside, and w/ proper config, your INT network will also see your EXT network on the server.

:rolleyes: I just looked back and saw you stated yes to the domain name, etc.

Most likely you will have to be sure your server is set up as either domain.tld or EXT.IP in the configure.php, and your router needs to let your INT network see, and pass thru, and communicate with, and pass back from, your EXT interface to your INT network.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...