|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
1) Are you sure you need to use Lmhosts rather than Hosts?
2) Remove ServerName localhost globally. 3) Set UseCanonicalName to Off. |
|
#3
|
|||
|
|||
|
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..
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > virtual server config problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|