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.
I have a RHEL4 server which already has a web server running on it(Intranet purpose) and it was configured by webadmin earlier. Now i want to host a web with out changing the existing web.How can i do that???
All the web related stuff is stored in /var/www/html
I have some jsp pages created by developers and i want to host a website using it.
Based on the httpd.conf, www.myserver.com is the default you will need a dns entry for the www.myserver1.com unless you are only using it on an internal net then host file will work.
NameVirtualHost *:80 Tells apache to use virtual hosts based on names
<VirtualHost *:80> Tells apache the 1st virtualhost
DocumentRoot /path/to/files Virtual host doc root
ServerName www.myserver.com Actual server name that will be used by apache
</VirtualHost>
Based on the httpd.conf, www.myserver.com is the default you will need a dns entry for the www.myserver1.com unless you are only using it on an internal net then host file will work.
NameVirtualHost *:80 Tells apache to use virtual hosts based on names
<VirtualHost *:80> Tells apache the 1st virtualhost
DocumentRoot /path/to/files Virtual host doc root
ServerName www.myserver.com Actual server name that will be used by apache
</VirtualHost>
Thanks for you reply. Using these modifications in my httpd.conf file i am able to browse www.myserver.com amd www.myserver1.com in the server where i hosted the website, But when i try to browse it from my desktop i am unable to do that. I have added entries of both www.myserver.com and www.myserver1.com in servers host file as i need to access this site internally with in our lan (Intranet) after which i am able to browse both the urls in server. How can i browse them from my desktop??
Thanks for you reply. Using these modifications in my httpd.conf file i am able to browse www.myserver.com amd www.myserver1.com in the server where i hosted the website, But when i try to browse it from my desktop i am unable to do that. I have added entries of both www.myserver.com and www.myserver1.com in servers host file as i need to access this site internally with in our lan (Intranet) after which i am able to browse both the urls in server. How can i browse them from my desktop??
You'll need a DNS entry; either on your DNS server if you have one, or in your desktop's /etc/hosts file, so it knows how to find the right system.
In the latter case, only you will see them...
Before DNS was invented, every system on the then ARPANET had a complete list of all systems in its hosts file. Obviously that doesn't scale, so DNS (& bind) was invented.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.