Plone on ubuntu port 80 - plone

I followed the plone install guide from the docs.
It goes well and I can access Plone at localhost:8080 . Now I'd like to change the port to 80 so I edit the buildout file, change http-address = 8080 to http-address = 80 , build the thing and restart the plone service.
I'd expect to be able to access it now without the :8080 suffix but alas...
How can I achieve this?

As sdupton says in the comments, don't do it.
Use Nginx to front it.
See this link for a how to

Related

How does one add SearXNG to caddy after using the installation script?

I'm trying to install SearXNG and direct a subdomain to the port that SearXNG uses. Following the instructions has gone smoothly until the following:
When all services are installed and running fine, you can add SearXNG to your HTTP server
As it does not say how I go about this.
All previous instructions were followed successfully up to and including
sudo -H ./utils/searxng.sh install all
and I was expecting lsof to show a service related to searxng running on a port that I could then redirect using caddy however I don't see anything related to caddy using a port and I'm not sure what I need to run, or what port I'm meant to add to my Caddyfile.

Cannot see initial page from nginx in other computers in same LAN on Fedora 35

I have installed it with command "sudo yum install ngingx" and its visible from computer host using its own ip in the browser, but in other computer in the same LAN and resolving ping it doesnt work and answers a timeout error. I know there is a /etc/nginx/nginx.conf file but I didnt see any valid configuration to resolve this (or I didnt search very well).
Machine has internet and resolves ping to other machines in lan
Could somebody guide me?
I use virtualbox to run Fedora
Thank you, here I left nginx.conf enter image description here
First of all, are you using bridge mode in virtualBox? If so and this is still not working, check if Fedora has enabled the firewall by typing in a shell:
systemctl status firewalld.service
If active, check the zone where the main adapter is configured
firewall-cmd --get-active-zones
Add ports 443 and 80 to the zone related to your interface (for instance FedoraWorkstation)
firewall-cmd --zone=FedoraWorkstation --permanent --add-port=80/tcp
firewall-cmd --zone=FedoraWorkstation --permanent --add-port=443/tcp
This should do the trick
Finally the problem was that apache is installed by default in fedora workstation and main page of nginx was showing apache as current web server, so any changes made in nginx wasnt being loaded. Solution: purge apache from system and reboot. Now nginx load as the main web server and changes made are applied

Jenkins: This site cannot be reached

I set up a DigitalOcean server running ubuntu 18.04 and am trying to run Jenkins on it. I followed the instructions to the letter in this tutorial:
https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-18-04
which works perfectly until Step 4. When I enter:
http://your_server_ip_or_domain:8080
substituting the DigitalOcean ip for "your_server_ip_or_domain", of course, the browser says "This site cannot be reached". Every step before that worked perfectly. The firewall is open to it.
I also made sure the JRE was installed.
EDIT: I read in another tutorial that Jenkins does not support Java 10 or 11, so I removed Java 11 and installed Java 8, and followed this tutorial:
https://linuxize.com/post/how-to-install-jenkins-on-ubuntu-18-04/
I also installed a web server using the following command:
sudo apt-get install nginx
Same error whether I put the ipaddress in the browser or ipaddress:80 or ipaddress:8080. I can ping the ip from outside the network ok. Any ideas?
I figured it out. Nginx is listening on port 80 so you need to open the firewall to that port as well. Use the following command:
sudo ufw allow 80
Now I can get the default web page for nginx by using ipaddress:80 and jenkins by entering ipaddress:8080

gitlab repository URL unchanged after reverse proxy changes

I am using a nginx reverse proxy to serve gitlab web app on port 80. ie nginx reverse proxy will redirect queries to http://ip-address/gitlab to http://ip-address:8000/gitlab . I have updated 'external_url' in my 'gitlab.rb' file. Everything is working (ie I am able to access the gitlab web-intrface via http://ip-address/gitlab ), except the generated git clone URLs. When I create new git projects, the repo URL is shown as http://ip-addeess:8000/gitlab/user/testproject.git. ie the port is still there. How can I remove the port?
The displayed repository URL is generated from the parameter external_url in your gitlab.rb file.
You should set it like this:
external_url 'http://ip-address/gitlab'
Then run sudo gitlab-ctl reconfigure to apply this change.
Add "proxy_set_header Host $http_host;" in your "location / { directive.
Then restart nginx.
It should resolve your issue

How to run 'ionic serve' in global WEB?

I'm new in Ionic Framework, so I need your help. When I'm running ionic serve on localhost everything is great. But now I'm trying to work with Cloud9, it prints:
The port 8100 was taken on the host 172.17.12.3 - using port 8101 instead
The port 35729 was taken on the host 172.17.12.3 - using port 35730 instead
Running live reload server: http://172.17.12.3:35730
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Running dev server: http://172.17.12.3:8101
But this adresses don't work at all. And i get an error from Cloud9:
Error: you may be using the wrong PORT & IP for your server app. Try passing $PORT and $IP to properly launch your application.
So how can I set $PORT and $IP in Ionic?
Since Cloud9 forwards port 8080 (which is the value of $PORT), you need to tell ionic to use that instead. With the recent change of allowing multiple ports, port 8081 and 8082 are also allowed, so you need to tell ionic to use 8081 (or 8082) as the livereload ports. The command that should work is:
ionic serve -p 8080 -l 8081
I also think that adding -a would help since with that option it appears to bind to IP 0.0.0.0 which you should be binding to in the first place. For more information about Ionic cli options, please check out the Ionic CLI github page
simple solution is to close the terminal in which you are running the serve request and open new terminal then give ionic serve request it will take the 8100 port (which you gave in your code)

Resources