LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Access Local Port on Website (https://www.linuxquestions.org/questions/linux-networking-3/access-local-port-on-website-603314/)

Garibaldi3489 11-29-2007 01:29 PM

Access Local Port on Website
 
Hello,

I am working on building a search engine of files in a particular directory on my server. I have installed the beagle service that will search an index files. I found a web interface for beagle called peagle:
http://www.kde-apps.org/content/show.php?content=38289
I can start the script with:
Code:

#./peagle
and access it then by going to localhost:7324. I would now like to put this webpage on the site I'm hosting with apache on this machine. How might I do that? I tried accessing it with www.websiteaddress.com:7324 but that won't work and I tried to use iptables to open that port but that doesn't seem to work either. Any ideas?

Thanks

BrianK 11-29-2007 01:43 PM

Quote:

Originally Posted by Garibaldi3489 (Post 2974736)
Hello,

I am working on building a search engine of files in a particular directory on my server. I have installed the beagle service that will search an index files. I found a web interface for beagle called peagle:
http://www.kde-apps.org/content/show.php?content=38289
I can start the script with:
Code:

#./peagle
and access it then by going to localhost:7324. I would now like to put this webpage on the site I'm hosting with apache on this machine. How might I do that? I tried accessing it with www.websiteaddress.com:7324 but that won't work and I tried to use iptables to open that port but that doesn't seem to work either. Any ideas?

Thanks

you're doing it right. If it's the same machine, and you can access the site via "http://localhost:<port>" you should also be able to access it via "http://DNSname:<port>" - whether DNSname is fully qualified external name or an internal alias doesn't matter. That said, when you do localhost or a local alias, you don't leave your internal network, but if you do a fully qualified external name, you do.

If it isn't working, it's going to be some sort of a router/firewall issue. Make sure your router is forwarding that port to that machine. Make sure you don't have that outbound port blocked, make sure your hosts.allow/deny isn't blocking, and double check your iptables again. I'm guessing a router config issue.


All times are GMT -5. The time now is 07:21 PM.