cancel
Showing results for 
Search instead for 
Did you mean: 

How to access my Apex application as a website

3ds
Newbie
Posts: 1
Registered: ‎26-04-2015

How to access my Apex application as a website

On my Windows 8.1 desktop machine, the stack is,
Oracle Standard 11g R2
Apex 4.2.6
ORDS 2.0.10
Open Source Glassfish 4.1
Apache Tomcat 8.0.21
Apache HTTP Server 2.4.3


Port details
-------------
Apex ORDS - 8080
Glassfish - 8090
Tomcat - 8888
Apache HTTP server - 9090


I have done Port Forwading to myDesktop on my home wi-fi as follows
-------------------------------------------------------------------
Apex ORDS 8080
Glassfish 8090
Tomcat 8888
Apache HTTP server 9090


Following is c:\windows\system32\drivers\etc\hosts
------------------------------------------------
127.0.0.1      localhost
::1                localhost
100.100.1.1    myDesktop      ( This is fixed IP of the desktop at my home network. This is made up here )
100.100.1.1    www.my-website.com ;     ( This is fixed IP of the desktop at my home network. This is made up here )


c:\Program Files\Apache Software Foundation\Apache2.4\conf\httpd.conf
---------------------------------------------------------------------
Listen 80


c:\Program Files\Apache Software Foundation\Apache2.4\conf\extra\httpd-vhosts.conf
---------------------------------------------------------------------
<VirtualHost *:80>
    ServerName www.my-website.com
    ServerAlias my-website
    ErrorLog "logs/my-website.com-error.log"
    TransferLog "logs/my-website.com-access.log"
    Redirect / http://www.my-website.com/ords/f?p=100:LOGIN_DESKTOP
    <Location /ords/>
        ProxyPass              http://localhost:8888/ords/
        ProxyPassReverse        http://localhost:8888/ords/
    </Location>
    <Location /i/>
        ProxyPass              http://localhost:8888/i/
        ProxyPassReverse        http://localhost:8888/i/
    </Location>
</VirtualHost>


When I access 111.111.11.11:8888 from outside, I can access Tomcat page successfully.
( 111.111.11.11 is my static IP provided by PlusNet ).


Without internet, I can access the Apex Admin page on the same desktop machine by www.my-website.com/ords/f?p=4550. This indicates, all the stack is working properly.
But if I access www.my-website.com, over the internet, I only get blank page.
(my domain is registered with GoDaddy and is forwarded to 111.111.11.11 which is my static IP)
Why can't I access my Apex application over the internet by typing the website.
1 REPLY 1
bobpullen
Community Gaffer
Community Gaffer
Posts: 15,047
Thanks: 2,699
Fixes: 171
Registered: ‎04-04-2007

Re: How to access my Apex application as a website

Quote from: 3ds
Without internet, I can access the Apex Admin page on the same desktop machine by www.my-website.com/ords/f?p=4550. This indicates, all the stack is working properly.
But if I access www.my-website.com, over the internet, I only get blank page.
(my domain is registered with GoDaddy and is forwarded to 111.111.11.11 which is my static IP)

Is the DNS definitely configured correctly? Does a lookup of your web address return the correct IP?
Quote from: 3ds
Why can't I access my Apex application over the internet by typing the website.

It sounds to me like either a DNS issue, or Apache misconfiguration.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵