Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 10:36 pm EST
Geeklog Forums
Site Url
Status: offline
ckier
Forum User
Junior
Registered: 01/07/03
Posts: 28
This is a somewhat complicated problem I have and may seem like a strange question i am going to ask, but hang on. Here's the problem: I am running my geeklog installation via Mac OS X's built-in Apache webserver and i have internet access via Apple's Airport base station (which also acts as a router). In order to make my page visible to anybody outside my home network somebody has to visit my external ip with :30303 appended to it since my webserver runs on port 30303. Now if somebody visits my external ip, they see the page fine but because of the airport base station I can't visit my external ip in a web browser from within my home airport network. If I set the config.php file to a local address such as 127.0.0.1 then i can see the page but nobody else can and if I set the config.php file to my external ip the opposite happens (everybody else can see it but I can't). Obviously i can't run a site this way and I have tried everything I can think of to no avail. So to make a long story short can I set the config.php file to point to my external ip as well as a local address (such as 127.0.0.1 or my internal ip) so that I too can visit my page. If anbody has an answer please post here.
13
21
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
Does MacOSX have the routeadd command line? Sounds like you are missing a route from your internal network to your external network. This may also be just a problem on your router. ---The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
18
16
Quote
Status: offline
ckier
Forum User
Junior
Registered: 01/07/03
Posts: 28
Yeah the command line does have the routeadd utility. The problem may very well be in the base station configuration or it may be a restriction apple put in for some reason, but I was just trying to get around that as i can't figure out what the problem is. That was why I was wondering if i could add two site urls in th config.php file and then i could just go to 127.0.0.1 in order to edit the geeklog installation while everybody else could go to my domain name which links to my external ip to view the webpage. If you have another idea about fixing this problem perhaps using the routeadd utility you mentioned please post back.
Christopher Kiernan
16
12
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
One work around is to get domain name (the free ones from dyndns.org and/or noip.com work fine) and put that in your config.php.
Then users type: your.domainname.com:30303
Then if you add an entry into /etc/hosts (or whatever the OSX equivielent is) reading:
127.0.0.1 your.domainname.com
This is what I do to view my site on both my internal network and from beyond the cable router.
-Vinny
11
14
Quote
Status: offline
ckier
Forum User
Junior
Registered: 01/07/03
Posts: 28
I tried this and still no luck. My domain name points to my external ip. Everybody else can visit my domain name and view site fine. I however can not, even with the hosts file. I have tried just about everything I can think of including hosting my own DNS server as somebody else had suggested on a different forum. If I go to 127.0.0.1:30303 I would see my site fine, if only that was what the config.php file said but of course i can't change it from my external to my local address because that would make no longer visible to everybody else. The only two ways i can see my site is if i go to a computer outside my airport home network or if i go to a local address matching the one in the config.php file, neither of which are viable solutions for maintaining a website. This is why i asked about the two site urls in the config.php as i see this as the only other possible solution. If anybody either has a hack to do this or can asure me that this is not possibile please post here.
18
15
Quote
Anonymous
Anonymous
I don't know anything about macs or there routers for that matter, but if the apple router will do port fowarding you'd be fine. I have a Linksys router on my dsl and i run an FTP, to get the public to see the server i just setup port fowarding in the router. Example:
you public ip is say: 192.168.1.1
you tell your router that any requests for say port 21 (FTP) need to go to your internal ip which is say 127.0.0.1
So all your users have to do is type in 192.168.1.1 the router "fowards" them to the computer running the service. if you got a domain name all you'd have to do (i think) is put your public ip in for the dns. like i said don't know if you can do it with the macs, but maybe this will help someone.
15
15
Quote
Anonymous
Anonymous
ABOUT PORT FOWARDING!
Sorry relized i din't tell you that if you set up port fowarding the user would have to type (in there browser) http://192.168.1.1 (your public ip) or ftp://192.168.1.1 depending on the service. or just get a domain
17
14
Quote
Status: offline
sardu
Forum User
Junior
Registered: 01/23/03
Posts: 17
Can you have a VirtualHost on port 80 simply redirect to port 30303?
What's your CanonicalName directive set to?
Have you looked at ProxyPass in mod_proxy? (I use this on my Linux router to send 'slf.homelinux.net/imac/' requests to my iMac on a private IP, not sure if this would work for your setup but the docs might reveal something you could use)---Lucas Thompson, sardu@mac,com
Lucas Thompson, sardu@mac,com
Lucas Thompson, sardu@mac,com
15
21
Quote
Status: offline
sardu
Forum User
Junior
Registered: 01/23/03
Posts: 17
Another thing to look at, how are your virtualhosts setup? A lot of people forget that you can setup a default vhost.
NameVirtualHost *
<VirtualHost *>
ServerName your.servername.com
DocumentRoot /path/to/geeklog/public_html
...
</VirtualHost>---Lucas Thompson, sardu@mac,com
Lucas Thompson, sardu@mac,com
Lucas Thompson, sardu@mac,com
12
16
Quote
Status: offline
sardu
Forum User
Junior
Registered: 01/23/03
Posts: 17
I have 4 installs of apache on this iMac so forgive me, but I think Apple's default location for httpd.conf is one of these:
/etc/httpd/httpd.conf
/usr/local/apache/etc/httpd.conf
But if you don't know where to look for the config file, you might want to read all the virtualhost docs before you muck with that file =)
---Lucas Thompson, sardu@mac,com
Lucas Thompson, sardu@mac,com
Lucas Thompson, sardu@mac,com
16
12
Quote
All times are EST. The time is now 10:36 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content