18th September 2012, 06:40
Join Date: Aug 2012
Thanked 0 Times in 0 Posts
Good day everyone.
I am trying to connect to CentOS Server from my Windows 7 PC.
Both PCs are connected on the same LAN router.
I can access the server both through its static IP and hostname.
Here's my problem...
The instant I type either the IP address or the hostname of the server, I want the server to throw me to a specific php page file.
Initially, when I go to the server, it shows me Apache's homepage.
I added a virtual host in the configuration file, pointing to the document root of the page I want to display, but it shows me a 404 Not Found page.
Here's my Virtual Host.
Here's the error log.
CustomLog /var/log/httpd/example.log combined
Allow from all
I don't understand the first one, as to why it repeated locations 1 to 4...
[Tue Sep 18 12:18:08 2012] [error] [client x.x.x.x] File does not exist: /var/www/html/loc1/loc2/loc3/loc4/loc1/loc2/loc3/loc4
[Tue Sep 18 12:18:09 2012] [error] [client x.x.x.x] File does not exist: /var/www/html/loc1/loc2/loc3/loc4/favicon.ico
Also, what is favicon.ico's purpose?
And oh, I didn't change anything in the httpd.conf file in /etc/httpd/conf directory, and my virtual host file is located in /etc/httpd/conf.d directory.
I have reinstalled apache, and now I am having this problem.
I have no idea how to fix that one...
PHP Warning: Smarty error: unable to read resource: "/var/www/html/loc1/loc2/loc3/tmpl/templates/.tpl" in /var/www/html/loc1/loc2/loc3/module/Smarty/Smarty.class.php on line 1095
Last edited by destinedjagold; 18th September 2012 at 12:50.