Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Maybe there are other opportunities but the virtual hosts are pretty straightforward for this. Copy 12 lines to your httpd.conf, edit them according to your names and restart the server. That's it.
Learn about vhosts and use apache, that's what the rest of the world has done!
hi TenTenths, actually my friend server who's having a small business. His Linux Server is hosting three web sites, he had asked me to check what is the configuration. So he can cancel the maintenance and do it on our own.
I had checked the httpd.conf under the vhost settings but there's nothing over there.
There's not even any changes from the original httpd.conf settings, so i don't know how they did it. That's why i'm asking.
Two commands on the command line would probably tell you how.
httpd -? to get the help, then httpd -S to show the vhosts.
If you're not getting that far on your own then I wouldn't recommend running a production web server for anyone until you've a bit more experience, but that's just my opinion.
Depending on the distribution the default location to look for virtual host configs are i. E.
/etc/apache2/vhosts.d
/etc/apache2/sites-enabled
or such but probably you find some additional configs that are loaded in httpd.conf.
Quote:
I wouldn't recommend running a production web server for anyone until you've a bit more experience
Two commands on the command line would probably tell you how.
httpd -? to get the help, then httpd -S to show the vhosts.
If you're not getting that far on your own then I wouldn't recommend running a production web server for anyone until you've a bit more experience, but that's just my opinion.
hi TenTenths, when i type httpd -S there is no configuration for the vhosts.
[root@myserver user1]# /usr/sbin/httpd -S
httpd: apr_sockaddr_info_get() failed for myserver.server.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
VirtualHost configuration:
Syntax OK
i just wanted to know how they were able to host multiple sites without using the vhost, please don't be too harsh in your comment. I'm not trying to mess up with the server, i just wanted to check their configuration.
Depending on the distribution the default location to look for virtual host configs are i. E.
/etc/apache2/vhosts.d
/etc/apache2/sites-enabled
or such but probably you find some additional configs that are loaded in httpd.conf.
I don't recommend neither
Hi j-ray, i tried to search for vhosts.d, using find / -name vhosts.d -print but nothing comes out on the result.
same goes with the sites-enabled, any ideas how they were able to hosts multiple sites on the server without those configurations?
thank you guys i finally found the configuration, i type find / -name httpd.conf - print there were three httpd.conf.
the other two httpd.conf, were bogus no configuration settings on it but the other one got configuration on the virtualhost.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.