Comments (3)
I don't see any problem. In the example below, the following redirections are working:
http://moby.io -> 301 --> https://www.moby.io
https://moby.io --> 301 --> https://www.moby.io
http://www.moby.io -> 301 --> https://www.moby.io
Can you please explain the issue more detailed?
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
{{ssl_certificate_key}}
{{ssl_certificate}}
server_name moby.io;
return 301 https://www.moby.io$request_uri;
}
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
{{ssl_certificate_key}}
{{ssl_certificate}}
server_name www.moby.io www1.moby.io;
{{root}}
from cloudpanel-ce.
Thanks, what I meant is that on my Cloudpanel installation, by default, the first redirection part is missing.
So every time I create a new virtual host, I have to manually add:
server { listen 80; listen [::]:80; listen 443 ssl http2; listen [::]:443 ssl http2; {{ssl_certificate_key}} {{ssl_certificate}} server_name mylocaltest.mr; return 301 https://www.mylocaltest.mr$request_uri; }
when in my local environment this part is automatically (and correctly) generated by default by Cloudpanel itself.
from cloudpanel-ce.
Cannot be reproduced.
from cloudpanel-ce.
Related Issues (20)
- Changing website log limit nothing shows HOT 1
- log rotation is with weird date HOT 1
- when user login via ssh cloudpanel welcome is doubled HOT 1
- CloudPanel UI not reflecting UFW entries added from cli HOT 1
- Unexpected brackets at the beginning of files HOT 2
- Issue Installing CloudPanel on freshly spun up Instances (Oracle Cloud and Vultr) DPKG Error for CloudPanel HOT 3
- Cant update proxy URL HOT 5
- Permission problem HOT 1
- File editor doesn't work on wp-config.php HOT 1
- cloud panel login is not login
- Ubuntu 24.04 on Hetzner + Cloudpanel = Extremely slow admin panel HOT 1
- Unable to load livewire .js file HOT 1
- Nginx (client_max_body_size) Error 413 – Request Entity Too Large. HOT 1
- Unable to Install Cloudpanel Successfully HOT 1
- Ftp list directory issue HOT 1
- our php site alwase going in sleep mode or stuck 2 to 3 times in a days when i restart mysql then working HOT 1
- NGINX crashed after almost everything HOT 2
- The server returned a "500 Internal Server Error". HOT 1
- install cloudpanel in local server HOT 1
- Custom cron commands are not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudpanel-ce.