Localhost Works, Public IP Access does not
Posted by: dave@mynatt.biz (---.hfc.comcastbusiness.net)
Date: October 28, 2011 12:50AM

Hi group- I can access LOCALHOST from the WAMP control panel, but cannot access my site using the static public IP: 173.14.27.85. IE gives error 'cannot display webpage'.

Access log says:
10.1.10.130 - - [27/Oct/2011:14:51:17 -0600] "GET /index.php HTTP/1.1" 301 -

... and fails at the PC with 'cannot display webpage'.

My HOSTS file has:
127.0.0.1 localhost

My HTTP file has:
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks +ExecCGI



#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
# AllowOverride all

#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from 66.
Deny from 38.
Allow from all

</Directory>

My htaccess has:
# Apache configuration for the blog folder
# Lines starting with # are considered as comments.

# PHP SECURITY:
# this will make register globals off in the evo directory
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>

# PHP5
# This may need to be in each folder:
# AddHandler application/x-httpd-php5 .php

# CLEAN URLS:
# If you're using Apache 2, you may wish to try this if clean URLs don't work:
# AcceptPathInfo On


# DEFAULT DOCUMENT TO DISPLAY:
# this will select the default blog template to be displayed
# if the URL is just .../blogs/
# <IfModule mod_dir.c>
# DirectoryIndex index.php index.html blog1.php
# </IfModule>


# CATCH EVERYTHING INTO B2EVO:
# The following will allow you to have a blog running right off the site root,
# using index.php as a stub but not showing it in the URLs.
# This will add support for URLs like: [example.com]
<IfModule mod_rewrite.c>
RewriteEngine On

# This line may be needed or not.
# enabling this would prevent running ina subdir like /blog/index.php
# This has been disabled in v 4.0.0-alpha. Please let us know if you find it needs to be enabled.
# RewriteBase /

# Redirect anything that's not an existing directory or file to index.php:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php
# </IfModule>


order allow,deny
deny from 66.
deny from 38.
allow from all


and my root directory is www. I do not have a BLOGS subdir as all b2evolution BLOGSn.PHP are in root dir.

Any help in getting my remote PC is access the web pages?

Thanks!

Dave

Options: ReplyQuote
Re: Localhost Works, Public IP Access does not
Posted by: yfastud (Moderator)
Date: October 30, 2011 02:23AM

You should set vh instead; then, you can type 'http://site1' to show the webpage and/or content of folder c:\wamp\www\site1, for example, 'http://site2' to show the webpage and/or content of folder c:\wamp\www\site2, 'http://site3' to show the webpage and/or content of folder c:\wamp\www\site3 ... in additions, you can their shortcuts to wamp menu for quick access; check screenshot winking smiley

[jlbn.com]

No matter within or outside LAN access, you need to setup Access, DNS, and VH; Access for permission to connect to your Wamp PC, DNS to tie Domain(s) to your Wamp PC, and VH to host multiple Domains/Websites/IP's and even you have only 1 Domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; w/ VH, other PC's, no matter w/i or outside LAN, can access/see websites/contents on your wamp PC. If dont have real Domain, just skip DNS guide

To setup Access, follow this
[blog.jlbn.net]

To setup VH, follow this
[blog.jlbn.net]

To setup DNS, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Localhost Works, Public IP Access does not
Posted by: sTimulated (---.as13285.net)
Date: October 30, 2011 05:00PM

Is this your site?
Combined Science Center
Shows up for me with your ip.
Yes,I see it is as your name is the same here and there smiling smiley



Edited 1 time(s). Last edit at 10/30/2011 05:03PM by sTimulated.

Options: ReplyQuote
Re: Localhost Works, Public IP Access does not
Posted by: dave@mynatt.biz (---.hfc.comcastbusiness.net)
Date: October 30, 2011 06:37PM

Hi group- I was not able to understand the part about VH, so I deleted WAMP and went with XAMPP. I think WAMP a better solution sometimes but not easy to adjust for novice not expert with HTTPD config. Too bad HTTPD config can't be made interactive where parts can be deleted/added/modified during install; a simple question like, Do You Want this Public and then make the central parts to make that happen.

Thanks all!

Dave

Options: ReplyQuote


Sorry, only registered users may post in this forum.