Page 1 of 1

cannot login by outside internet.please HELP.

PostPosted:Sat Nov 28, 2020 7:38 am
by benson
i can login either the localhost or PC within LAN.

but cannot login using PC with outside internet, although i had followed the instruction by modifying the httpd configuration.
Code: Select all
<VirtualHost *:80>
  ServerName openkm.your-domain.com
  RedirectMatch ^/$ /OpenKM

  ProxyPass /OpenKM ajp://127.0.0.1:8009/OpenKM keepalive=On
  ProxyPassReverse /OpenKM http://[my static IP]:80/OpenKM

  ErrorLog /var/log/httpd/openkm-error.log
  CustomLog /var/log/httpd/openkm-access.log combined
</VirtualHost>
and the server.xml listed as following,
Code: Select all
<!--     <Resource name="jdbc/OpenKMDS" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" validationQuery="select 1"  username="openkm" password="*****" driverClassName="com.mysql.jdbc.Driver"
            url="jdbc:mysql://localhost:3306/okmdb?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8"/> -->

   <Resource name="jdbc/OpenKMDS" auth="Container" type="javax.sql.DataSource"
            maxActive="100" maxIdle="30" maxWait="10000" validationQuery="select 1 from INFORMATION_SCHEMA.SYSTEM_USERS"
            username="sa" password="" driverClassName="org.hsqldb.jdbcDriver"    url="jdbc:hsqldb:${catalina.base}/repository/okmdb"/>
  <Connector port="80" address="222.128.47.203" protocol="HTTP/1.1" connectionTimeout="20000"      redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
  <!--  <Connector executor="tomcatThreadPool"   port="80" protocol="HTTP/1.1"  connectionTimeout="20000"   redirectPort="8443" /> -->

<!--  <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"  maxThreads="150" scheme="https" secure="true"   clientAuth="false" sslProtocol="TLS" />      -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->      
  <Connector port="8009" address="127.0.0.1" protocol="AJP/1.3" edirectPort="8443" />
Please help me, thank you very much!

futhermore, i have closed all firewall service, including iptables.

Re: cannot login by outside internet.please HELP.

PostPosted:Sat Nov 28, 2020 8:37 am
by jllort
Read this documentation section: https://docs.openkm.com/kcenter/view/ok ... proxy.html at least this section in your configuration is wrong:
Code: Select all
ProxyPassReverse /OpenKM http://[my static IP]:80/OpenKM
Also I suggest remove default apache configuration
Code: Select all
a2dissite 000-default.conf