Posts

Showing posts with the label proxy

proxy in angular universal

proxy in angular universal I'm on the projects that were made with Angular Universal. I need to change blog.mywebsite.com to mywebsite.com/blog for SEO, I used proxy-config in ng start , like code below, it works correctly but it doesn't work when I run build:ssr blog.mywebsite.com mywebsite.com/blog ng start build:ssr there is no error in the built project, just after running with node dist / server.js show website but I call mywebsite.com / mag I redirect to 404 page, while there is no problem in npm start node dist / server.js mywebsite.com / mag npm start "scripts": { "ng": "ng", "build": "ng build --prod", "start": "ng serve -o --proxy-config src/proxy.conf.json ", "extract": "ng xi18n --output-path=locale", "build:ssr": "npm run build:client-and-server-bundles && npm run webpack:server ", "serve:ssr": "node dist...

Apache, Tomcat & SSL: ProxyPass and ProxyPassReverse

Image
Apache, Tomcat & SSL: ProxyPass and ProxyPassReverse I'am having troubles configuring Apache, Tomcat and SSL, this is the scenario: I have an Apache Web Server, running and working normally (but , I can access to this one just typing: https://example.com Also, in this host, I have a Tomcat running and working fine in port 8080 (HTTP); I've created a mini web-app which files are inside "test" directory, I can access typing: http://example.com:8080/test (I know that Apache is running in 80 port and Tomcat in 8080) What I want to do is that througt Apache an user can access to 'test' (running on Tomcat) using HTTPS, I mean: https://example.com/test But when I access this link appers this: When I access using HTTP http://example/test works, but I need that be HTTPS. http://example/test I also create a file config in /etc/httpd/conf.d/vhost.conf , this is the content: /etc/httpd/conf.d/vhost.conf <VirtualHost *:80> ServerName www.example.com Docu...