moronnl
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Publish from Internal to Public?for the complete route: Internally I use the “internal DMZ address of the webserver” using port 7008, that connects to the docker-container where the WP site lives.
Forum: Localhost Installs
In reply to: Publish from Internal to Public?Ah ok, Well, I am just starting with wordpress locally (i used it at providers, hence I wanted to try and run it locally so I could test extensively before putting it online)
My current route is : external IP on 80/443 forwards to (internal “DMZ” IP of) Proxy, and the proxy routes it internally to the correct “web-server” in the “proxy-vlan” (proxy4 in the docker-compose.yml), based on the rule (in this case rule=this.site.nl ).
Forum: Localhost Installs
In reply to: Publish from Internal to Public?I guess you mean htaccess, but what do you mean with “setting proper from localhost to outside?”
Forum: Localhost Installs
In reply to: Publish from Internal to Public?It seems I have the same issue, or the same misunderstanding of the concept. At first I thought it was due to the theme, but it turns out to be on every theme.
my setup:
– 1 server (physical at home)
– on that server I installed traefik as reversed proxy. Proxy-rules determine to which website you will go (on that same host using dockers)
– On that same host, i run multiple dockers, each docker-container running its own website (all not WP sites, this issue is the first time i run a docker with WP that i want to install on this host)My docker-compose file exposes port 7008 (or whatever I would decide) to the docker at port 80
I can now install and configure my website on private ip (https://172.16.0.5:7008) which works fine and everything looks great.
Now, I want to publish the website to my domain, so i change the site-url to https://this.site.nl and the wordpress url the same..
Result: All css files, images etc are still pointing to https://172.16.0.5:7008 . Manually change the values in the WP Database using SQL solves the image trouble (partially) but still the CSS is not working.I can reach the WP install by its internal IP on port 7008. On the domain name, i can reach it too, but no images, css files etc, and the admin fails to show correctly too.. (no matter what theme I use)
my docker-compose.yml:
———————————————–version: '3.1' services: wordpress: image: wordpress restart: always environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: wp_user WORDPRESS_DB_PASSWORD: examplepass WORDPRESS_DB_NAME: exampledb volumes: - ./wordpress:/var/www/html labels: - "traefik.enable=true" - "traefik.http.routers.mywp.rule=( Host(this.site.nl)" ports: - 7008:80 db: image: mysql:5.7 restart: always environment: MYSQL_DATABASE: exampledb MYSQL_USER: wp_user MYSQL_PASSWORD: examplepass MYSQL_RANDOM_ROOT_PASSWORD: '1' volumes: - ./db:/var/lib/mysql networks: default: external: name: proxy4
Any pointers or help would be greatly appreciated!
- This reply was modified 1 year, 12 months ago by moronnl.
- This reply was modified 1 year, 12 months ago by moronnl.
- This reply was modified 1 year, 12 months ago by moronnl.
- This reply was modified 1 year, 12 months ago by moronnl. Reason: backticks in code didnt show correctly
- This reply was modified 1 year, 12 months ago by moronnl.
- This reply was modified 1 year, 12 months ago by moronnl.