SMF Image issue

tgray96

[H]ard|Gawd
Joined
Dec 13, 2010
Messages
1,055
I am bringing this topic back to light..... I installed Simple Machines Forum on my IIS7 webserver, along with php, phpmyadmin, and MySQL.... but i am having the same damned image issue as before.... all permissions are set to not be read only,

check it out http://www.twpforums.tk
 
never mind on that but i do have another question this site is going to be setup on the domain above^ how can i access it from my internal network?
 
Your DNS setup is weird. Firefox shows 'connecting to 10.0.0.2' in the status bar, however, the page is loading over the internet (slowly, though).

IIS should be listening on 10.0.0.2. Set up a nat translation from your public IP to 10.0.0.2:80.

Then, on the internal network, just access the site at 10.0.0.2. Generally home routers are not smart enough to automagically rewrite destination IP addresses. You might run into vhost issues if IIS is configured to serve up http://www.twpforums.tk and you try accessing http://10.0.0.2

It seems like Firefox is trying to load the images from http://10.0.0.2/ rather than http://www.twpforums.tk. Since 10.0.0.2 means nothing on my network, obviously I can't load any images.

Code:
<link rel="stylesheet" type="text/css" href="[URL="http://hardforum.com/view-source:http://10.0.0.2/Themes/default/style.css?fin11"]http://10.0.0.2/Themes/default/style.css?fin11[/URL]" />
	<link rel="stylesheet" type="text/css" href="[URL="http://hardforum.com/view-source:http://10.0.0.2/Themes/default/print.css?fin11"]http://10.0.0.2/Themes/default/print.css?fin11[/URL]" media="print" />
	<link rel="help" href="[URL="http://hardforum.com/view-source:http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&action=help"]http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&amp;action=help[/URL]" target="_blank" />
	<link rel="search" href="[URL="http://hardforum.com/view-source:http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&action=search"]http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&amp;action=search[/URL]" />
	<link rel="contents" href="[URL="http://hardforum.com/view-source:http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&"]http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&amp;[/URL]" />
	<link rel="alternate" type="application/rss+xml" title="Team Wolf Pack Clan  - RSS" href="[URL="http://hardforum.com/view-source:http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&type=rss;action=.xml"]http://10.0.0.2/index.php?PHPSESSID=tt5da2o48v8hl5hqe9hj8dsu71&amp;type=rss;action=.xml[/URL]" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link rel="stylesheet" type="text/css" href="[URL="http://hardforum.com/view-source:http://10.0.0.2/Themes/default/portal.css?233"]http://10.0.0.2/Themes/default/portal.css?233[/URL]" />
	<script type="text/javascript" src="[URL="http://hardforum.com/view-source:http://10.0.0.2/Themes/default/portal.js?233"]http://10.0.0.2/Themes/default/portal.js?233[/URL]"></script>

Aha! Actually the problem is quite simple. All of the stylesheets and images are coded in as being at http://10.0.0.2/whatever. This is not correct.

Instead of having:
http://10.0.0.2/index.php?

you need to have:
http://www.twpforums.tk/index.php?

Looks like the vhost got configured incorrectly when you set up IIS. You should be using www.twpforums.tk, not the IP address.
 
It's already configured. The reason why you can't access twpforums.tk locally is probably because your router is not automagically rewriting the destination IP addresses.
 
Some routers will do weird things if you try to access the external IP from inside. In pfsense there's an option called NAT Reflection which changes the behavior. Maybe your router has similar settings.

For a true test you are better off testing externally. If this is going to be a permanent setup I would keep it separate from your actual network, anyway. If your ISP allows to pull multiple IPs, I'd put it on a separate IP.
 
i am unsure how to pull multiple ip's if it's possible.......... i am on centurylink, with a westell 7500 gateway ( modem, router, wifi-ap)
 
Your router can't rewrite the destination IP address. This is why you are getting the redirect. Either a. replace it with pfSense or something, or b. use http://10.0.0.2 internally.

However, the image/php script issue looks like a vhost issue. Your webserver needs to listen on 10.0.0.2, port 80. However it looks like the vhost is configured incorrectly. All of the images and scripts are linked as http://10.0.0.2. Nobody on the Internet can access that IP. When you configured IIS/SMF, did it ask you for the domain name of the website? Putting in 10.0.0.2 is not correct.
 
i left 10.0.0.2 then, so i could admin the site, i changed it back to twpforums.tk..... and edited the binding on IIS as conenction:

port: 80 hostname: www.twpforums.tk
 
View the page source. All the stylesheets and images are located at http://10.0.0.2/stuff

This will not work over the internet. You need to re-run the IIS setup (or the SMF setup) so that it is using www.twpforums.tk as the vhost (vhost is an apache term, however, there should be something analogous in IIS). Somewhere there is a setting that is causing content to be presented as http://10.0.0.2/stuff

I think it is the 'site name' option. Site name should be www.twpforums.tk. You are binding to 10.0.0.2, however, the site name cannot be 10.0.0.2

ewFUM.png


See site name and hostname?

site name should be twpforums.tk

hostname should be www.twpforums.tk
 
Try and see if you can enter multiple hostnames.

Also, you'll need to do testing from school or something. Either that or get a router that can actually rewrite destination addresses. anything linux/bsd based should be able to handle it.
 
alright i added a second binding as: ip and port... no host, but since i added url: http://www.twpforums.tk on the forum installer, i cannot do anything on the site as it tries to redirect me to twpforums.tk
 
Much better, I'm actually seeing stylesheets + images now.

Do this:

Use 'view page source'. Look at how many links are http://10.0.0.2/whatever. These are bad. You've fixed most of it. I don't have the experience using SMF/IIS to tell you exactly where you are gong wrong. However, I can tell you that if something isn't loading, that's because the link is pointing to http://10.0.0.2 rather than http://www.twpforums.tk

I would recommend finding a SMF/IIS forum to try and get some more detailled answers on what's left for you to fix (I haven't seen anyone else chime in on this).
 
Looks like you have a few more issues now. On my default DNS configuration twpforums.tk doesn't even resolve. When settings specifically to 4.2.2.1 it does resolve to 76.2.68.17 however when going directly to the ip, or even ip/twp it still fails. downforeveryoneorjustme.com also confirms it as down.
 
I'd almost say redo IIS from scratch and SMF from scratch the right way.
 
- Setup the .tk domain to point to your external IP.
- Forward port 80 in your router to the static IP of your server. Make sure the server has a static IP.
- Setup IIS and create a site and bind it to that interface.
- Put the SMF in the appropriate directory in inetpub or wherever you pointed to in your site.
- Browse to http://localhost/smf/setup.php (or whatever it is) and go through the wizard and if it asks you for IP and site info use www.tpforums.tk. For the SQL part, use localhost.

It really is a lot simpler than it seems.
 
no its not sorry, everytime you change pages in smf it auto redirects you to www.twpforums.tk which doesnt work internally

So modify your internal DNS to point requests for www.twpforums.tk to the internal address instead of the external address. It really is much simpler then it seems.

Also right now when going to the twpforums.tk address it brings up a captive portal type web page.
 
To modify your internal DNS, assuming you are using windows DNS server you need to add a reverse lookup zone for twpforums.tk and then add an A record that points to the web server's internal IP address.

It now looks like when going to twpforums.tkyou get auto redirected to /twp, however the connection times out.
 
Back
Top