Mike Phan said:
The httpd.conf from the xampp is different from the Apache alone. So we have to look through all pages. And the VirtureHost configuration is also different to me.
I don't know about a VirtureHost thing and I suspect it is best left alone.
How did you get the old apache configured?
Note that it is usually best to leave everything to the default.
Only change something if you know you need it (and change stuff back if it didn't help you).
Mike Phan said:
I used to add ".txt" to the httpd.conf to convert it to text for editing. The apache can help this, but the xampp doesn't. That is only way to edit?
There is no need to add ".txt". The file can simply be opened in for instance Notepad or Wordpad. And yes, that is the way to edit it.
Mike Phan said:
I used a new hard drive to setup the xampp, so the old apache is on the other hard drive which was took out from my server. I tested URL, and it showed below:
"Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster. "
I think something is wrong with the httpd.conf, but have no clue yet.
Thanks!
An URL will only work if the corresponding file is in the location where apache will look for it.
In your old apache directory you should have a directory somewhere (I think it's called "htdocs" or something) in which your web pages are, or perhaps it is configured to be in another place (check httpd.conf).
In the XAMPP directory this same directory will be there and will probably contain only a couple of files, specifically one that contains the html text "It works!".
I recommend you copy the files from your old location to the new location.
Then an URL should work.
If it doesn't look in "access.log" where apache tried to find it, and look in "errors.log" why it didn't work.
Things you typically need to check in httpd.conf is the port apache is listening to and perhaps the ip address of the server.
And you need to check the directory where apache expects the web pages to be, although I recommend that you do not change it (just to cut back on unneeded problems).
And your welcome!
