Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 15th, 2002, 10:19 AM
Napoleon Napoleon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 4 Napoleon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question virtual server config problem

Hello,
OS: win 98 SE
WEB SERVER: Apache HTTP
DB SERVER: MySQL

With your help, I managed to set up my apache test server and even created two virtual domains mymarket.com and test.com. Suddenly, they don't work anymore allthough I haven't touched the config.
I created an Lmhosts file with the following entry:

127.0.0.1 localhost mymarket.com test.com

An excerpt of httpd.conf is also as follows:

ServerName localhost

NameVirtualHost *

<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot "C:/Apache/www/localhost"
ServerName localhost
ScriptAlias /php4/ "C:/php4/"
ErrorLog C:/Apache/www/localhost/logs/localhost-error_log
CustomLog C:/Apache/www/localhost/logs/localhost-access_log common
</VirtualHost>


<VirtualHost *>
ServerAdmin URL
DocumentRoot "C:/Apache/www/mymarket.com"
ServerName mymarket.com
ScriptAlias /php4/ "C:/php4/"
ErrorLog C:/Apache/www/mymarket.com/logs/mymarket.com-error_log
CustomLog C:/Apache/www/mymarket.com/logs/mymarket.com-access_log common
</VirtualHost>

<VirtualHost *>
ServerAdmin URL
DocumentRoot "C:/Apache/www/test.com"
ServerName test.com
ScriptAlias /php4/ "C:/php4/"
ErrorLog C:/Apache/www/test.com/logs/test.com-error_log
CustomLog C:/Apache/www/test.com/logs/test.com-access_log common
</VirtualHost>

Secondly, I have compiled and tried to run a database sample program that comes with WxWindows. For this I created an ODBC data source as follows:

Data source name: mymarket sample
Host/Server Name (/ip): localhost
Database Name: mymarket
User: myuser

A test is able to connect successfully but the program does not connect. Since no one else in complaining, I'm thinking It has something to do with me. I will appreciate any help with this problem too.

Finally, When I run MySqlWinAdmin on my PC, it tells me Local IP address is 169.254.168.3. What is this address compared to 127.0.0.1 which i used in my Lmhosts file?


Thanks in advance for your help.

Napoleon.

Reply With Quote
  #2  
Old February 15th, 2002, 12:43 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1) Are you sure you need to use Lmhosts rather than Hosts?
2) Remove ServerName localhost globally.
3) Set UseCanonicalName to Off.

Reply With Quote
  #3  
Old February 15th, 2002, 12:43 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I don't know what's your problem, so sorry for off point but I just notice something different that you have ScriptAlias /php4/ "C:/php4/" at each vhosts. I don't think, you need to do that since whole are in the same path. If you remove them then PHP will still working..

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > virtual server config problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway