LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-09-2008, 04:53 AM   #1
yogesh619
LQ Newbie
 
Registered: Jul 2008
Posts: 15

Rep: Reputation: 0
guidance required for configuring virtual host


Hi

can anybody guide; i m trying to configure a virtual host
but on system other than webserver.
In my network DNS,DHCP,and a web server has been already configured on
three different systems.now i want to configure a virtual host but on system other than above three . and make it accesible with certain URL
for example. testhost.mydomain.com

how can i do it

thanks!
 
Old 10-09-2008, 10:49 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
well you either need a static IP or to use a DynamicDNS service to have a URL always pointing at the server. There is alot of manuals around about how to configure virtual hosts and I find they are usually extremely confusing. Below is a virtual host I have configured on my server

Code:
<VirtualHost *:80>
        DocumentRoot /var/www/html/vmhost/
        ServerName r3sistance.net
        ServerAlias www.r3sistance.net
</virtualHost>
from /etc/httpd/httpd.conf

DocumentRoot is the actual folder that is used as the Vhosts home. Server name is the URL that points at the virtualhost and server alais is alternative URLs that can also point at the same virtual host. This virtual host is configured within apache. If you get a static IP you can change *:80 to ip:80 for example this server uses 85.234.131.138 so it could be 85.234.131.138:80 instead. I just leave it as *:80 to be simple, also if you currently have a web server on :80 you could use say an alternative port like say *:8080 to use port 8080 for this virtual host you are trying to set up. My VirtualHost is simpliest in the way it doesn't have seperate logs for the virtual host but as this is a VPS that implicitly only hosts this site, if you want to look up on logs then I'll have to guide you to a manual as I don't really deal with seperate logs for my virtualhosts on this VPS.

Last edited by r3sistance; 10-09-2008 at 10:53 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 03:52 PM
configuring secured name based virtual host bzlaskar Linux - Security 4 04-19-2007 05:05 AM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM
virtual users and virtual host need to stay at /home nephish Linux - Networking 3 01-14-2006 01:36 PM
Decided to try Debian some guidance required ninadb Debian 2 08-20-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration