Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello guys, I am new to linux and just installed it on my extra computer which I have decided to turn into a small-scale web server. I installed Apache on it and we can connect to it locally but when we try to connect to it from outside of my network, I get a connection timed out error. I have set apache to listen on port 6621 because setting it to forward port 80 Causes serious problems and I get a "Router behind Router" error.
This text appears when i connect locally :
"Apache/2.2.4 (Ubuntu) Server at 192.168.1.72 Port 80" But in the file ports.conf I changed the listen port to 6621, Is there anywhere else I can change this?
Are you running a firewall on Kubuntu? If so have you opened that the required port there as well?
I have not personally installed a firewall onto the server nor am I aware of one coming pre-installed . But apache seems to want to listen on port 80 even though I set it to listen to 6621 in ports.conf for some reason.
As far as I know, most GNU/Linux distros install a firewall by default. You also need to define your port in the httpd.conf file, then restart apache after doing so.
Alright, In the new versions of apache, The Httpd.conf file is no longer used, it's only still present because some packages require its presence to function correctly, But I have copied the following into the httpd.conf file just in case:
Listen 6621
<IfModule mod_ssl.c>
Listen 443
</IfModule>
*EDIT- Turns out, putting ANYTHING into the httpd.conf file makes apache not even want to start.*
First check to make sure there are no syntax errors in any of your apache config files
Quote:
sudo apache2ctl -t
I'm running apache 2.2.3 and my config file is apache2.conf. In here I changed "Listen 443" to "Listen 4433", restarted apache, then confirmed that it was listening on that port by typing "sudo netstat -lnp | grep apache".
Got everything running and exposed to the internet now. Only problem is that i put the Index.html file in the var/www directory and it works but it shows this ugly generic menu where it says "Index of /" And you have to click the apache folder to reach the site. Any idea on how I can make it go directly to the site instead of having to go through the ugly menu?
Got everything running and exposed to the internet now. Only problem is that i put the Index.html file in the var/www directory and it works but it shows this ugly generic menu where it says "Index of /" And you have to click the apache folder to reach the site. Any idea on how I can make it go directly to the site instead of having to go through the ugly menu?
Well you presumably just have an incorrect documentroot setting of have just put your website in a subfolder. normally your main index.html/php/etc... would be in /var/www/html/ and that would also be the standard documentroot setting in httpd.conf, so at some point one of these things has been changed by yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.