Jump to content

Reverse proxy


adan200
 Share

Recommended Posts

Hello everyone,

I am trying to mount my applications behind a reverse proxy.

Use the ServerModule.UrlPath property (as mentioned in another thread).

Original App http: // localhost: 8074
Apache (reverse proxy) port 81 / {context}

I have some problems
1- I get a Method: '/ HandleEvent' not found message
What could be the cause of this?

2- To work the reverse proxy, and that not only the message "Loading" appears, copy the folder extroot and uniroot where the executable is located.
I've tried modifying the ServerModule.UniRoot and ServerModule.UniExt property to a custom folder, but it ignores.

 

 

Captura1.JPG

Captura2.JPG

Link to comment
Share on other sites

in your context you would have a thing like that

<VirtualHost *:81>
 #   ServerAdmin webmaster@domain.com
 #   ServerName subdomain.domain.com
    DefaultType text/html
    ProxyPreserveHost on
    ProxyRequests off
    Proxypass / http://127.0.0.1:8074/
    ProxyPassReverse / http://127.0.0.1:8074/
#    ErrorLog "|bin/rotatelogs.exe logs/%Y-%m-%d_subdomain.domain.com-error.log 86400"
#	CustomLog "|bin/rotatelogs.exe logs/%Y-%m-%d_subdomain.domain.com-access.log 86400" common
</VirtualHost>

 

Link to comment
Share on other sites

I have 2 projects in diferents port use with Hyperserver,


##<VirtualHost *:80>
    ##ServerAdmin webmaster@dummy-host2.example.com
    ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com"
    ##ServerName dummy-host2.example.com
    ##ErrorLog "logs/dummy-host2.example.com-error.log"
    ##CustomLog "logs/dummy-host2.example.com-access.log" common

     ServerAdmin me@example.com
     DocumentRoot "C:\xampp\htdocs"
     ServerName example.com:81
     ErrorLog "logs/example.com-error.log"
     CustomLog "logs/example.com-access.log" common

     ProxyRequests Off
     ProxyPreserveHost Off
 
     <Proxy *>
         Order deny,allow
         Allow from all
     </Proxy>

     <Location /nomina>
         ProxyPass http://localhost:8074/ connectiontimeout=5 timeout=300
         ProxyPassReverse http://localhost:8074/
     </Location>
 
     <Location /almacen>
         ProxyPass       http://localhost:8077 connectiontimeout=5 timeout=300
         ProxyPassReverse http://localhost:8077
     </Location>

##</VirtualHost>

Link to comment
Share on other sites

15 hours ago, adan200 said:

I have 2 projects in diferents port use with Hyperserver,


##<VirtualHost *:80>
    ##ServerAdmin webmaster@dummy-host2.example.com
    ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com"
    ##ServerName dummy-host2.example.com
    ##ErrorLog "logs/dummy-host2.example.com-error.log"
    ##CustomLog "logs/dummy-host2.example.com-access.log" common

     ServerAdmin me@example.com
     DocumentRoot "C:\xampp\htdocs"
     ServerName example.com:81
     ErrorLog "logs/example.com-error.log"
     CustomLog "logs/example.com-access.log" common

     ProxyRequests Off
     ProxyPreserveHost Off
 
     <Proxy *>
         Order deny,allow
         Allow from all
     </Proxy>

     <Location /nomina>
         ProxyPass http://localhost:8074/ connectiontimeout=5 timeout=300
         ProxyPassReverse http://localhost:8074/
     </Location>
 
     <Location /almacen>
         ProxyPass       http://localhost:8077 connectiontimeout=5 timeout=300
         ProxyPassReverse http://localhost:8077
     </Location>

##</VirtualHost>

in unigui serverput are you settings /almacen  /nomina when compiling?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...