Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to access internal PHP site..From internet
Old 09-27-2008, 10:46 AM How to access internal PHP site..From internet
Novice Talker

Posts: 6
Trades: 0
Hi all i am a newbie. recently i installed miniBB forum in my private network. I can access it by typing its ip address (192.168.1.10) internally.......But when i try to access the site from my office through public IP by port forwarding. I can access only the home page of it and all other links are like http://192.168.1.10/index.php?action...orum=1&topic=1 So i cant access it ..is there any concept to change the links to public IP when accessing from it...... Like (http://PUBLIC_IP/index.php?action=vt...orum=1&topic=1)
livingstone123 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-27-2008, 10:57 AM Re: How to access internal PHP site..From internet
Experienced Talker

Posts: 33
Name: Toby Osbourn
Trades: 0
I would say you would need to check out miniBB support for this.
tosbourn is offline
Reply With Quote
View Public Profile
 
Old 09-27-2008, 11:01 AM Re: How to access internal PHP site..From internet
Novice Talker

Posts: 6
Trades: 0
any one help me plz
livingstone123 is offline
Reply With Quote
View Public Profile
 
Old 09-27-2008, 11:06 AM Re: How to access internal PHP site..From internet
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
depends on how your links are set up in the forum configuration.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-27-2008, 11:12 AM Re: How to access internal PHP site..From internet
Novice Talker

Posts: 6
Trades: 0
If i change the links to public IP i cant access internally.......and my IIS6.0 server is set to private IP(192.168.1.10)....
livingstone123 is offline
Reply With Quote
View Public Profile
 
Old 09-27-2008, 11:15 AM Re: How to access internal PHP site..From internet
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
don't use absolute links
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-27-2008, 11:17 AM Re: How to access internal PHP site..From internet
Novice Talker

Posts: 6
Trades: 0
Then How?
livingstone123 is offline
Reply With Quote
View Public Profile
 
Old 09-27-2008, 11:24 AM Re: How to access internal PHP site..From internet
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
no idea, never used miniBB, but at a guess instead of using the IP just set it to / so all links will become root relative
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-27-2008, 11:27 AM Re: How to access internal PHP site..From internet
Novice Talker

Posts: 6
Trades: 0
root relative ?..............
livingstone123 is offline
Reply With Quote
View Public Profile
 
Old 09-27-2008, 11:53 AM Re: How to access internal PHP site..From internet
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Ah ok, that new

relative and absolute addressing.

absolute addressing is when the link is a fully qualified URI.(http://www.sitename.com/pagename.php) which in your case is going to be (http://xxx.xxx.xxx.xxx/pagename.php)

relative is just referencing the folder or file name in links and the HTTP user agent (browser) then normalises the reference into a FQ URI by adding the protocol (HTTP://) and the HTTP hostname (domain.tld) to the URL in the link.

document relative is where the URI would be normalised WRT the current document or folder so from index.php say you can only access files at the same level or go down the folder structure.
so if you are in a folder of temp, a reference to images/pic.jpg would be normalised to domain.tld/temp/images/pic.jpg


root relative is where the addition of a "/" to the page name forces the reference to be normalised from the site "root" (the domain name) so from "temp" again /image/pic.jpg would normalise to domain.tld/images/pic.jpg

You need to tell the forum config NOT to add the IP to links so it creates absolute references, but create root relative references and allow the UA to normalise the references into whatever the HTTP hostname is, in your case the IP used.

HOWEVER the problem may be one of port forwarding/NAT translation not handling the return traffic correctly (depends on the router)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-27-2008, 12:10 PM Re: How to access internal PHP site..From internet
Novice Talker

Posts: 6
Trades: 0
Thanks for ur help i changed the main_url to
http://' . $_SERVER['HTTP_HOST'] . ' It worked thanks.....byeeee
livingstone123 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to access internal PHP site..From internet
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45491 seconds with 12 queries