Can't connect to owncloud as soon as I change apaches hosting port

Posted August 24, 2013 10.3k views
Hi, i set up my own owncloud server. Only to find out my ISP is blocking port 80. As soon as I change Apache2's port to 8080 and restarted apache2. "localhost:8080/owncloud" says that the requested URL /owncloud/ was not found.... how to fix this ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
9 answers
How did you change the port? Which files did you edit?
"nano /etc/apache2/ports.conf" changed it to 8080. seems like my router was using port 80, switched the router to port 8080. and made apache2 use port 80 again. So now i can acces my owncloud from the internet. would still be interested in know how to fix this if the ISP ever really blocks port 80.
If you edit /etc/apache2/ports.conf to port 8080 you have to edit your virtualhost to listen on *:8080 instead of *:80
i did also change the virtualhost to listen to 8080
"... my ISP is blocking port 80"

Did you install ownCloud locally or on a remote server?
@Pablo: I believe it's a local installation.
yes it is a local installation.
Are you able to access OwnCloud from other machines, on the same network?
You also have to open the port(s) in the apache firewall, in my case I use open Suse and the file is /etc/sysconfig/SuSEfirewall2.
Edit the line: FW_SERVICES_EXT_TCP="22 80 443" just add the ports between the ""