473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Setting Apache Virtual Host

Hi

I need to set up a virtual host . Let me know the steps involved to set up a virtual host. So that , though the internet connection is not available , i could access my intranet pages as www.example.com.

Please shower ur inputs.

Thanks in advance.

Somaskarthic
Dec 23 '06 #1
2 2568
Loismustdie129
195 100+
The basic way I know how to do it is to ues the <VirutalHost> directive

Here is an example using the server www.example.com of the minimum a webmasters must include:

<VirtualHost www.example.com>
DocumentRoot #This is where hte vrtual host's documents reside
Servername www.example.com
ServerAdmin #This is the e-mail address of the virtualhost's webmaster
Redirect #This specifies any RULs to be redirected to other URLs
ErrorLog #This specifies the file where errors are logged involving this virtual host
CustomLog #This specifies the file where accesses to the virtual host is logged
</VirtualHost>

Hope this helps

NOTE: any thing in the example after the # is where you must put your own information independent of your system or virtual host information
Dec 23 '06 #2
cassbiz
202 100+
Man you are posting all over the place.

Using the above method and also the one that I wrote out for you in this post http://www.thescripts.com/forum/thread580357.html
You should be able to figure it out.

Once you have completed the initial steps if you are still having problems then
look into your error logs to see where the problem lies.

Also one other note is that you should be able to ping the domain example.com from your shell.

This is assuming you have Apache setup and it is working.
Dec 26 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Charley | last post by:
OK, this is going to sound dumb to most but here goes. Please keep in mind, I am coming from a windows background. I want to do some development using PhP and animated gifs. I see that the...
9
by: toufik toufik | last post by:
Hi, In the setting of my host, the variable register_globals is set to On, I like to set it to Off in my solution, is it possible? I've tried in my code: ini_set("register_globals","0"); but it...
7
by: Alexandr Molochnikov | last post by:
Hello, I've spent a few days trying to get Apache and Tomcat work together via JK module. First I followed the following HOWTO link: http://www.johnturner.com/howto/winxp-howto.html and...
3
by: andy | last post by:
Hi, I'm trying to get mod_python working on my web server, but I'm running into problems, possibly due to having virtual hosts configured. I'm no apache guru (newbie is more accurate!) so I...
0
by: bruce | last post by:
Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior...
7
by: Bob | last post by:
I'm using PHP 5.1.1 with Apache 2.0.54 and several virtual hosts. PHP is installed as a module. I've created a very simple test page containing <?php phpinfo(); ?> and placed it at the doc root...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.