473,320 Members | 1,884 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,320 software developers and data experts.

Virtual Host not working

I am trying to configure virtual host on linux machine.

Following lines added to httpd.conf :

##----------------------------------
NameVirtualHost 10.34.36.83:80

<VirtualHost 10.34.36.83:80>
ServerName www.lampia.net

ServerAlias scm.lampia.net
ServerAdmin webmaster@lampia.net
DocumentRoot /usr/lib/gforge/www
ErrorDocument 404 /404.php
php_value include_path ".:/usr/lib/gforge/:/usr/lib/gforge/www/include/:/etc/gforge/"
php_value magic_quotes_gpc On
php_value register_globals On
php_value default_charset "UTF-8"
#SSLEngine On
#SSLCertificateFile /etc/httpd/conf/rapidigmers.net.cert
#SSLCertificateKeyFile /etc/httpd/conf/rapidigmers.net.key
#
# LOCATION may have to be used instead of FILES for some installs
#
<Location /projects>
ForceType application/x-httpd-php
</Location>
<Location /users>
ForceType application/x-httpd-php
</Location>
DirectoryIndex index.php
</VirtualHost>

##----------------------------

Now if I access Url http://10.34.36.83 then it works properly.

But when I try to acces it with Url http://www.lampia.net , It does not work.

Any expert suggessitions ?
Jul 7 '06 #1
5 12997
Hi,

You need to check whether your hosts file on your PC as well as hosts on Apache server is updated with new virtual hostname. It should work

:)
Jul 7 '06 #2
Hi,

You need to check whether your hosts file on your PC as well as hosts on Apache server is updated with new virtual hostname. It should work

:)

Can you exactly tell me what entry to make in my linux host file /etc/hosts for the above fonfiguration... Currently my file has following entries in that file :
##------
127.0.0.1 localhost.localdomain localhost
10.34.36.83 rapidigmer.rapidigmerdomain rapidigmer
##------

And I dont think making entry in my PC's host file will make sense, because I can not go and make changes to everybody's PC who want to access it.

Thanks in advance
Jul 7 '06 #3
sashi
1,754 Expert 1GB
Hi Nilesh,

well.. host file entry on the client side does make sense provided if your running your own primary DNS server.. :)

first of all is named deamon (DNS Service) started? secondly, have create the forward and reverse zone files respectively?

pls refers to the below link.. very useful when it comes to setting up linux based web server.. goof luck my fren.. :)

http://www.linuxhomenetworking.com/wiki/
Jul 7 '06 #4
How apache to run in localhost in PC
Aug 3 '06 #5
sashi
1,754 Expert 1GB
Hi Junkiet,

you can the apache installer from apache website.. download the .msi installer version which is bundled for windows based pc's.. follow the default settings during the installation..

once installation is completed.. restart your pc.. you will be able to access you freshly installed web server by typing http://localhost at the address bar..

http://www.apache.org
Aug 5 '06 #6

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

Similar topics

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...
13
by: Bryan Harrington | last post by:
Hello all.. I'm working on an application that I'd like to use some shared files. Right now my directory structure is: / (root) .../Shared/ .../Reports/ .../Tools/
0
by: ccrabfo | last post by:
Has anyone ever implemented embedding a "virtual host" or "virual machine" environment inside your C/C++ programs so that end-users could write small snippets of customized code, compile it using...
5
by: Stu Carter | last post by:
Hi, ENV: Windows 2003 Server SP1 (+all updates), VS 2003, .Net 1.1 SP1 We've got an ASP.Net web application using State Service. All is fine until we tried to use the app through a virtual...
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...
17
by: Paul | last post by:
On my development computer, I have virtual named host set up, like www.site1.lab. When I upload those to my web site for customer review under mywebsite.com/clients/site1/ it throws some of the...
6
by: David | last post by:
Hi all, Using C# .NET 1.1 I am creating a CMS type of application. So far so good. I have a templating system in place that works fantastically. I can remap non-real files and folders and get...
1
by: =?Utf-8?B?QiBTaW5naA==?= | last post by:
Hi Scenario 1) Host - XP Laptop with internet connection using Sky Broadband Wireless Router Netgear DG834GT 2) MS Virtual Server 2005 - I have deployed an XP MS Virtual Server 2005 to act...
5
by: rockdale | last post by:
Hi, all: Hope somebody can solve this problem for me. We are migrating 3 asp website into IIS 6.0 on a server 2003. we do not want to create 3 website since we do not want to acquire different...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.