Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing redirect server from http: to https: #8

Closed
timbl opened this issue Oct 10, 2020 · 4 comments
Closed

Missing redirect server from http: to https: #8

timbl opened this issue Oct 10, 2020 · 4 comments
Assignees

Comments

@timbl
Copy link
Contributor

timbl commented Oct 10, 2020

http://*.solidcommunity.net/ could do with a redirect to https:

$ curl http://solidos.solidcommunity.net/
curl: (7) Failed to connect to solidos.solidcommunity.net port 80: Connection refused

@bourgeoa
Copy link
Member

@timbl I used to be a server maintainer on solid.community server and implemented the fonctionality.

If the server IP as not changed, I do not have anymore an access to solidcommunity.net server and would be happy to gain the same ability respecting detail reporting, data's confidentiality and data security.

I have also made most of gitlab.com/solid.community and am a maintainer of NSS

@bourgeoa
Copy link
Member

Redirect done with nginx : tested on http://solidcommunity.net and http://solidcommunity:8443

the setup was the following with nginx :

This is the block rule :

# redirect all http to https
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;
    return 301 https://$host$request_uri;
}

and the process followed :

apt-get install nginx => OK (installed with port 80 rule)
systemctl status nginx => Nginx active (tested also with http://solid.community => Welcome to Nginx
cd /etc/nginx/sites-available
vi http_to_https => create file with block rule for http to https
cd /etc/nginx/sites-enabled
ln -s /etc/nginx/sites-available/http_to_https http_to_https
rm default
nginx -t => test configuration is OK
systemctl reload nginx

@bourgeoa
Copy link
Member

bourgeoa commented Nov 9, 2020

Done should be closed

@justinwb
Copy link
Member

Working for me - thanks! @bourgeoa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants