You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by se...@anconseil.eu on 2020/04/20 16:43:20 UTC
[users@httpd] Access from Internet to web app
Hi team,
I need to access to a web app from the local network and
from internet (GLPI)
I use linuxlite =ubuntu 18.04 and Apache 2 with SSL
certificat.
The current configuration is :
* (in < /etc/apache2/ > folder)
Apache2.conf :
<Directory /var/www/html>
AllowOverride All
>/Directory>
- (in < /etc/apache2/conf-available > folder
)
Glpi.conf
<Directory /var/www/html/glpi>
AllowOverride All
>/Directory>
<Directory
/var/www/html/glpi/config>
Options -Indexes
>/Directory>
<Directory /var/www/html/glpi/files>
Options -Indexes
>/Directory>
With this setup, the site is not available from Internet.
How to do ?
And I can access it about 10 minutes from local machine and
after a error message appears : < A link to the SQL server could not be
establied. Please check your configuration >
So, it's not reliable.
I don't understand and I don't know what to do ?
Thanks by advance for your help
Best regard
RE: [users@httpd] Access from Internet to web app
Posted by se...@anconseil.eu.
Hi Yann,
Thanks a lot for your help.
GLPI is a web app (the site to use, it must be open from and towards Internet)
The linux release is LinuxLite 4.8 (=Ubuntu 18.04)
So, the first conf file is /etc/apache2/apache2.conf
Inside there is this : includeOptional sites-enabled/*.conf
So it read the conf file (glpi.conf) of app :
In "/etc/apache2/sites-enabled" there is glpi.conf, it contains :
<VirtualHost *:443>
DocumentRoot /var/www/html/glpi
ServerName 192.168.0.60
ServerAlias glpi
<Directory /var/www/html/glpi/>
Require all granted
AllowOverride All
Order deny, allow
deny from all
Allow from all
AuthType Basic
</Directory>
</VirtualHost>
In "/etc/apache2/ports.conf" there is :
Listen 80
<ifModule ssl_module>
Listen 443
</ifModule>
<ifModule mod_gnutls.c>
Listen 443
</ifModule>
#vil: syntax=apache ts=4 sw=4 sts=4 sr noet
The ssl module is ok, the web site works on local machine (192.168.0.60) with certificate.
But, none other PC of the network can connect on, from outside (Internet) not too.
To answer at your question :
Access from both local network or internet is done on different IP addresses (and/or DNS names) is suppose, right?
Now, I try to access from the network, after I will try from Internet. And, yes, from outside the local network the access will have a DNS address, and from inside with ip adress.
About :
This looks like the application needs an access to a database, something httpd can do nothing about I'm afraid.
I know, that the mariaDB falls after about 10 minutes, now.
I don’t think, it’s an apache2 default
Thanks in advance for your help
Serge
-----Message d'origine-----
De : Yann Ylavic <yl...@gmail.com>
Envoyé : mercredi 22 avril 2020 20:51
À : users@httpd.apache.org
Objet : Re: [users@httpd] Access from Internet to web app
Hi Serge,
On Mon, Apr 20, 2020 at 6:43 PM < <ma...@anconseil.eu> serge.chavant@anconseil.eu> wrote:
>
>
> I need to access to a web app from the local network
> and from internet (GLPI)
Not sure what "GLPI" internet means.
>
> The current configuration is :
Is that complete configuration?
For instance I don't see some <VirtualHost> configuration which is the entry point in Apache httpd for serving content from a listening IP address.
Access from both local network or internet is done on different IP addresses (and/or DNS names) is suppose, right?
>
> With this setup, the site is not available from Internet. How to do ?
>
>
>
> And I can access it about 10 minutes from local
> machine and after a error message appears : « A link to the SQL server
> could not be establied. Please check your configuration »
This looks like the application needs an access to a database, something httpd can do nothing about I'm afraid.
>
> I don’t understand and I don’t know what to do ?
To start with httpd, there is:
<https://httpd.apache.org/docs/2.4/getting-started.html> https://httpd.apache.org/docs/2.4/getting-started.html
I can't really suggest something more precise without knowing about your needs and environment...
Regards,
Yann.
---------------------------------------------------------------------
To unsubscribe, e-mail: <ma...@httpd.apache.org> users-unsubscribe@httpd.apache.org
For additional commands, e-mail: <ma...@httpd.apache.org> users-help@httpd.apache.org
Re: [users@httpd] Access from Internet to web app
Posted by Yann Ylavic <yl...@gmail.com>.
Hi Serge,
On Mon, Apr 20, 2020 at 6:43 PM <se...@anconseil.eu> wrote:
>
>
> I need to access to a web app from the local network and from internet (GLPI)
Not sure what "GLPI" internet means.
>
> The current configuration is :
Is that complete configuration?
For instance I don't see some <VirtualHost> configuration which is the
entry point in Apache httpd for serving content from a listening IP
address.
Access from both local network or internet is done on different IP
addresses (and/or DNS names) is suppose, right?
>
> With this setup, the site is not available from Internet. How to do ?
>
>
>
> And I can access it about 10 minutes from local machine and after a error message appears : « A link to the SQL server could not be establied. Please check your configuration »
This looks like the application needs an access to a database,
something httpd can do nothing about I'm afraid.
>
> I don’t understand and I don’t know what to do ?
To start with httpd, there is:
https://httpd.apache.org/docs/2.4/getting-started.html
I can't really suggest something more precise without knowing about
your needs and environment...
Regards,
Yann.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Access from Internet to web app
Posted by se...@anconseil.eu.
Hi team,
Thanks for your answer
Oops ! I’m not rewrite correctly from my VM
On my VM, the « > » doesn’t exist. These are the « < ».
So, it’s not the problem, sorry.
I need your help
Thanks for advance
Best regards
De : Jack M. Nilles <jn...@jala.com>
Envoyé : lundi 20 avril 2020 20:11
À : users@httpd.apache.org
Objet : Re: [users@httpd] Access from Internet to web app
For starters, all your entries >/Directory> should read </Directory>
On 20 Apr 2020, at 9:43, <serge.chavant@anconseil.eu <ma...@anconseil.eu> > <serge.chavant@anconseil.eu <ma...@anconseil.eu> > wrote:
Hi team,
I need to access to a web app from the local network and from internet (GLPI)
I use linuxlite =ubuntu 18.04 and Apache 2 with SSL certificat.
The current configuration is :
* (in « /etc/apache2/ » folder)
Apache2.conf :
<Directory /var/www/html>
AllowOverride All
>/Directory>
- (in « /etc/apache2/conf-available » folder )
Glpi.conf
<Directory /var/www/html/glpi>
AllowOverride All
>/Directory>
<Directory /var/www/html/glpi/config>
Options -Indexes
>/Directory>
<Directory /var/www/html/glpi/files>
Options -Indexes
>/Directory>
With this setup, the site is not available from Internet. How to do ?
And I can access it about 10 minutes from local machine and after a error message appears : « A link to the SQL server could not be establied. Please check your configuration »
So, it’s not reliable.
I don’t understand and I don’t know what to do ?
Thanks by advance for your help
Best regard
Re: [users@httpd] Access from Internet to web app
Posted by "Jack M. Nilles" <jn...@jala.com>.
For starters, all your entries >/Directory> should read </Directory>
> On 20 Apr 2020, at 9:43, <se...@anconseil.eu> <se...@anconseil.eu> wrote:
>
> Hi team, <>
>
> I need to access to a web app from the local network and from internet (GLPI)
>
> I use linuxlite =ubuntu 18.04 and Apache 2 with SSL certificat.
>
> The current configuration is :
> (in « /etc/apache2/ » folder)
> Apache2.conf :
> <Directory /var/www/html>
> AllowOverride All
> >/Directory>
>
> - (in « /etc/apache2/conf-available » folder )
> Glpi.conf
> <Directory /var/www/html/glpi>
> AllowOverride All
> >/Directory>
>
> <Directory /var/www/html/glpi/config>
> Options -Indexes
> >/Directory>
>
> <Directory /var/www/html/glpi/files>
> Options -Indexes
> >/Directory>
>
> With this setup, the site is not available from Internet. How to do ?
>
> And I can access it about 10 minutes from local machine and after a error message appears : « A link to the SQL server could not be establied. Please check your configuration »
>
> So, it’s not reliable.
>
> I don’t understand and I don’t know what to do ?
>
> Thanks by advance for your help
>
> Best regard