Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1548

Not show port used in geoserver url and make geoserver web interface https

$
0
0

i'm trying to run geoserver in production but i have some issues.

*** Configuration and System ***

WPS : operating system Debian 12Geoserver : 2.25.0Domain name on cloudfaressl certificate from certbotGeoserver directory : /usr/share/geoserver

*** Issue 1***

The web interface of geoserver is at domainname.com:8080/geoserver/web/

I want the port to not be showed in the url, result should be like domainname.com/geoserver/web

*** Issue 2***

When i go to my website the ssl certificate is good : i have https://domainname.com

But the web interface of geoserver is still in http : http://domainname.com:8080/geoserver/web/

I want the web interface and everything that refers to geoserver ressources to be in https too.

Thanks for the help.

I've try to make a proxy and reverse proxy in a virtualhost but it's not working.

Here's my configuration

<VirtualHost *:80>        # The ServerName directive sets the request scheme, hostname and port that        # the server uses to identify itself. This is used when creating        # redirection URLs. In the context of virtual hosts, the ServerName        # specifies what hostname must appear in the request's Host: header to        # match this virtual host. For the default virtual host (this file) this        # value is not decisive as it is used as a last resort host regardless.        # However, you must set it for any further virtual host explicitly.        ServerName geoserver.domainname.com        #ServerAdmin webmaster@localhost        #DocumentRoot /var/www/html        ProxyPass /geoserver  http://localhost:8080/geoserver        ProxyPassReverse /geoserver  http://localhost:8080/geoserver        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,        # error, crit, alert, emerg.        # It is also possible to configure the loglevel for particular        # modules, e.g.        #LogLevel info ssl:warn        ErrorLog ${APACHE_LOG_DIR}/error.log        CustomLog ${APACHE_LOG_DIR}/access.log combined        # For most configuration files from conf-available/, which are        # enabled or disabled at a global level, it is possible to        # include a line for only one particular virtual host. For example the        # following line enables the CGI configuration for this host only        # after it has been globally disabled with "a2disconf".        #Include conf-available/serve-cgi-bin.conf#RewriteEngine on#RewriteCond %{SERVER_NAME} =domainname.com#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]    RewriteEngine on    RewriteCond %{HTTPS} off    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [NE,R=301,L]RewriteCond %{SERVER_NAME} =geoserver.domainname.comRewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]</VirtualHost>

Viewing all articles
Browse latest Browse all 1548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>