qneo
Forum Replies Created
-
Alright, thanks
Forum: Installing WordPress
In reply to: Skip wordpress installationThanks ?? I’ll check it out
Forum: Installing WordPress
In reply to: WordPress installation under HTTPSThanks guys, it’s solved now
Forum: Installing WordPress
In reply to: WordPress installation under HTTPSOkay, I know what’s wrong now.
I use nginx proxy to redirect traffic to my docker container where I have apache & wordpress. When I visit the site without using a proxy, the page looks as it should.
I guess I’m doing something wrong in my proxy_pass, but I don’t know what? After all, the page shows that https is enabled.
NGINX:
server {
listen 443 ssl;
server_name site-1.mydomain.com;
ssl_certificate /ssl/mydomain.com/fullchain1.pem;
ssl_certificate_key /ssl/mydomain.com/privkey1.pem;
location / {
proxy_pass https://6664bcef9f967204f6096cad_webserver:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}APACHE:
<VirtualHost *:80>
ServerName site-1.mydomain.com
DocumentRoot /user/site/
</VirtualHost>
<VirtualHost *:443>
ServerName site-1.mydomain.com
DocumentRoot /user/site/
</VirtualHost>Forum: Installing WordPress
In reply to: WordPress installation under HTTPSThe styles are probably not being loaded. Have a look at the server to see if you can find any errors there. In the error log, for example
Yes, the dev console shows that requests are sent for css & js files, but via http. So something is not right from the start, maybe something is missing in the config file?
<?php
define( 'DB_NAME', 'wp' );
/** Database username */
define( 'DB_USER', 'wp' );
/** Database password */
define( 'DB_PASSWORD', 'wpwp123' );
/** Database hostname */
define( 'DB_HOST', 'localhost' );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );
$table_prefix = 'wp_';
define( 'WP_DEBUG', false );
/* Add any custom values between this line and the "stop editing" line. */
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';Forum: Installing WordPress
In reply to: WordPress installation under HTTPSThanks for your reply.
Are all these steps necessary?
Is it not possible to set up https in advance for a new site? For example, declare a variable in a config file so that wordpress knows what it’s about right from the start.