Local Host vs NAT IP

73 views
Skip to first unread message

Doug Roberson

unread,
Feb 27, 2015, 10:26:03 PM2/27/15
to lu...@googlegroups.com
I apologize in advance, as this is probably a stupid question. I'm having a hard time finding information in the docs and I'm still fairly new at this.

Lucee 4.5.1.000
Windows Server 2012 R2
Connects to MS SQL Server 2012, running on a Windows 2008 R2 server.

When I access the "Welcome to your Lucee Installation1" page via local host (http://127.0.0.1:8888/), the page displays normally.

Accessing the page via IP from another machine on the same network (http://192.168.1.80:8888), the images are not displayed.

This weekend, I am hoping to consolidate several very simple sites from two different servers running Railo to one server running Lucee. 

Thank you for your help and, if needed, your forbearance.

I'll probably have more questions over the next couple of days.

Doug

Igal @ Lucee.org

unread,
Feb 28, 2015, 2:44:24 AM2/28/15
to lu...@googlegroups.com
are you sure that Lucee is processing the page when you access it via the LAN address?  (as opposed to receiving an "html" page with the Lucee source code).

check the following:

    1) view source of the page to see that you don't see any <cf... > directives in the source, which will answer the question above

    2) open Developer Tools (F12 on most browsers) and check what happens with the missing images (404s?).  check the URLs of those missing images

Igal Sapir
Lucee Core Developer
Lucee.org

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/3946c0a6-9cf6-4b72-b26e-b20628be8865%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

AJ Mercer

unread,
Feb 28, 2015, 4:49:20 AM2/28/15
to lu...@googlegroups.com
my guess would be that you need to add this IP to server.xml

You will need to do this if you use a domain name as well.

     <!--   HOST ENTRY TEMPLATE:
        <Host name="[ENTER DOMAIN NAME]" appBase="webapps">
             <Context path="" docBase="[ENTER SYSTEM PATH]" />
             <Alias>[ENTER DOMAIN ALIAS]</Alias>
        </Host>
      -->

<Host name="127.0.0.1" appBase="webapps">
             <Context path="" docBase="[ENTER SYSTEM PATH]" />
             <Alias>92.168.1.80</Alias>
             <Alias>my.domain.here</Alias>
        </Host>


--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/3946c0a6-9cf6-4b72-b26e-b20628be8865%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Doug Roberson

unread,
Feb 28, 2015, 8:34:42 AM2/28/15
to lu...@googlegroups.com
Igal

Thanks for the assistance!

There are no CF directives in view source.

In Debugging/Elements, when I right click and open in new tab, it returns:


HTTP Status 404 - /assets/img/img-first-steps.png

type Status report

message /assets/img/img-first-steps.png

description The requested resource is not available.

Apache Tomcat/7.0.59 

Doug Roberson

unread,
Feb 28, 2015, 8:44:37 AM2/28/15
to lu...@googlegroups.com
AJ

Thanks for the help!

When I add the recommended host entry below and attempt to restart Lucee, it fails to start (log says Child name '127.0.0.1' is not unique)

I added the alias entry to the existing host (localhost) and restarted, but get the same result.

<Host name="localhost" appBase="webapps">
             <Context path="" docBase="[ENTER SYSTEM PATH]" />
             <Alias>92.168.1.80</Alias>
</Host>

I haven't added a domain name alias yet - as soon as I have the server up and running, I'll switch port forwarding to this machine and add the domain aliases.

Doug Roberson

unread,
Feb 28, 2015, 8:47:49 AM2/28/15
to lu...@googlegroups.com
One more note - I did comment out the original localhost entry before I added your suggested entry.


On Saturday, February 28, 2015 at 4:49:20 AM UTC-5, AJ Mercer wrote:

Igal @ Lucee.org

unread,
Feb 28, 2015, 12:04:46 PM2/28/15
to lu...@googlegroups.com
I would set the Host name="localhost" and then make sure that the Engine defaultHost is set to that value, so:

  <Engine name="Catalina" defaultHost="localhost">
    ...
    <Host name="localhost" autoDeploy="false">
      ...

this way any request that doesn't match the host will go to the default localhost and you'll have one less thing to worry about.

from my experience issues like this are most of the time a network issue.  make sure that no firewalls are blocking the request.  it's possible that the firewall allows requests form localhost but not from another machine.  first go to Windows Firewall and then check any other appliance or software.

it's usually a simple thing once you figure it out, but hard to tell without seeing it.


Igal Sapir
Lucee Core Developer
Lucee.org

Doug Roberson

unread,
Feb 28, 2015, 12:45:34 PM2/28/15
to lu...@googlegroups.com
Thanks for your help, Igal... I cheated, but it is working now.

I made those suggested changes with no difference in the result.

Firewall is disabled on the server and on the client computer. Both machines are behind the same router, which allows access to the server's IIS default page without issue. 

I've just deleted the VM and restored a pre-Lucee version from backup. With all of the things I've tried to fix the problem, I could have created half a dozen more issues.

After the re-install, it is working as expected when viewing http://192.168.1.80:8888/

I'm going to make a post-install backup now, and then try to bring over my other sites. 

Besides server.xml, isn't there another file I'll need to edit to point a site to a different folder? 

On my other servers (running Railo), I actually used Helicon Zoo, which takes care of all the configuration for you.


Igal @ Lucee.org

unread,
Feb 28, 2015, 2:17:54 PM2/28/15
to lu...@googlegroups.com
just to clarify -- you did restart Tomcat after each change to server.xml, right?  a restart is required for new settings to take effect.


Igal Sapir
Lucee Core Developer
Lucee.org

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

Doug Roberson

unread,
Feb 28, 2015, 2:25:12 PM2/28/15
to lu...@googlegroups.com
Yes, I did. I actually rebooted the whole VM once, just in case.

This time around, i added a new host section in server.xml, restarted and it created the WEB-INF folder for the new host, as expected. 

I'm googling the steps for setting up the new site now and will then copy over the files for a site from the old server, add the datasource to Lucee, change the port forward on the router, and see what happens.

Thank you very much for the help. I'm sorry I wasn't able to define what caused the problem in the first place. I didn't do anything differently in that install, so I can't really explain it.


Reply all
Reply to author
Forward
0 new messages