<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
I guess your new site's URL should be
<br>
</div>
<div>
http://opencms.company.com:8081
<br>
</div>
<div>
instead of
<br>
</div>
<div>
http://localhost:8081
<br>
</div>
<div>
<br>
</div>
<div>
Please check in "Launchpad" -> "Websites"
<br>
</div>
<div>
I assume the Demo site's URL is already http://opencms.company.com:8080 in your case
<br>
</div>
<div>
Check also "Server URL" (http://opencms.company.com:8080) in "Global configuration" (Gear wheel on top)
<br>
</div>
<div>
<br>
</div>
<div>
I assume you've also configured the appropriate tomcat connector for port 8081?
<br>
</div>
<div>
<br>
</div>
<div>
The same configuration is working here (Demo site :8080 + two other sites on :8081 and :8082)
<br>
</div>
<div>
<br>
</div>
<div>
Best,
<br>
</div>
<div>
Gerd
<br>
</div>
<blockquote type="cite">
<div>
Nili C <nilimesh@hotmail.com> hat am 30. April 2020 02:15 geschrieben:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
Sorry, forgot to mention few things:
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
I can still access the Tomcat main page from
<a id="LPlnk284232" href="http://opencms.company.com:8080">http://opencms.company.com:8080</a> (so nothing wrong with that port number)
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
And when I access
<a id="LPlnk649743" href="http://opencms.company.com:8080/opencms/system/login">http://opencms.company.com:8080/opencms/system/login</a> the error I get is as follows (this is an OpenCMS specific message):
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
404
<br>
<div>
Page Not Found
<br>
</div>
<div>
The requested resource "/opencms/system/login" was not found on the server.
<br>
</div>
<div>
<br>
</div>This server runs OpenCms - the open source content management system
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
Thanks
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
Nili
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div>
<br>
</div>
<div id="appendonsend">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div dir="ltr" id="divRplyFwdMsg">
<span style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;"><strong>From:</strong> opencms-dev-bounces@opencms.org <opencms-dev-bounces@opencms.org> on behalf of Nili C <nilimesh@hotmail.com><br><strong>Sent:</strong> Wednesday, April 29, 2020 8:09 PM<br><strong>To:</strong> opencms-dev@opencms.org <opencms-dev@opencms.org><br><strong>Subject:</strong> [opencms-dev] Cannot login from outside server</span>
<div>
<br>
</div>
</div>
<div dir="ltr">
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
Hi,
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
I have installed OpenCMS v11 on a company server. On the server itself, I can access it using
<a id="LPlnk902689" href="http://localhost:8080/opencms/system/login">http://localhost:8080/opencms/system/login</a>.
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<span style="color: #000000; font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">From my laptop externally (and while on company VPN), I can access the same as </span>
<a style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;" id="LPlnk983975" href="http://localhost:8080/opencms/system/login">http://opencms.company.com:8080/opencms/system/login</a>
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
This was all working fine.
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
I am going through the tutorial to get familiar and create a template (from my laptop using external URL):
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<a id="LPNoLP406915" href="https://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/">https://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/</a>
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
While on "Step 5: Configure your template for a site", I created the website using
<a id="LPlnk561493" href="http://localhost:8081">http://localhost:8081</a> as instructed.
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
However, right after this step, I could not access OpenCMS from my laptop using
<a style="margin: 0px; font-size: 12pt; font-family: Calibri,Helvetica,sans-serif; background-color: #ffffff;" id="LPlnk654076" href="http://localhost:8080/opencms/system/login">http://opencms.company.com:8080/opencms/system/login</a>
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
I can still access and login successfully from the server using
<a id="LPlnk887785" href="http://localhost:8080/opencms/system/login">http://localhost:8080/opencms/system/login</a>. (I also noticed that the website is created there). So I dont think I broke anything.
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
What do I need to do so I can use the product from my laptop using the external link, and not the localhost? What went wrong? Why did it stop working?
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
Greatly appreciate your help.
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
Thanks
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
Nili
</div>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;">
<br>
</div>
</div>_______________________________________________
<br>This mail is sent to you from the opencms-dev mailing list
<br>To change your list options, or to unsubscribe from the list, please visit
<br>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>