Virtual Hosts, defaults on port 81 with Apache not working
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.
Virtual Hosts, defaults on port 81 with Apache not working
Hi, I am setting up a webserver on my DSL line, and my friend would like to host his site, so I set up an account in RedHat, and he can access his home directory using vsftpd.
I set the default virtual host for port 81 in Apache to point to his home directory, and allowed all addresses on port 81.
But whenever he or I try to access his directory 4ttp://servers.ip.addy:81, it comes up with the default site that handles all other requests, i.e those on port 80, as ive only allowed requests on 80 and 81.
I tried setting his accounts home directory to point to a directory within /var/www/html/, but he cant access it through FTP then.
I have no idea what to do now.
Any help would be really appreciated, thank you very much.
*the 4ttp is because I cant post web addresses, its meant to mean http
Re: Virtual Hosts, defaults on port 81 with Apache not working
Quote:
Originally posted by S3ct0r Hi, I am setting up a webserver on my DSL line, and my friend would like to host his site, so I set up an account in RedHat, and he can access his home directory using vsftpd.
I set the default virtual host for port 81 in Apache to point to his home directory, and allowed all addresses on port 81.
But whenever he or I try to access his directory 4ttp://servers.ip.addy:81, it comes up with the default site that handles all other requests, i.e those on port 80, as ive only allowed requests on 80 and 81.
I tried setting his accounts home directory to point to a directory within /var/www/html/, but he cant access it through FTP then.
I have no idea what to do now.
Any help would be really appreciated, thank you very much.
*the 4ttp is because I cant post web addresses, its meant to mean http
So where is 81 port mapped to then from your ADSL router? If 81 is mapped to 81 port then you need to start apache on 81 port.
Why do you even need to host it on 81? Why not on 80? Has your friend got a domain? If yes then ask him to point his domain to your adsl IP. Set up virtual host on 80 port
Why do you even need to host it on 81? Why not on 80? Has your friend got a domain? If yes then ask him to point his domain to your adsl IP. Set up virtual host on 80 port
I did try this but it didnt work, I am not sure why. I do however like the site being defined by the port, as it wouldnt rely on a domain name (had problems with getting one to forward a few times properly)
Quote:
If 81 is mapped to 81 port then you need to start apache on 81 port.
How do I do this? I have "all addresses on port 81" in the addresses list, the same as port 80. Is there somthing I have missed?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.