Browsers don’t render website when using virtual host

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Browsers don’t render website when using virtual host

Postby asheth77 » 23. June 2014 22:08

Hi everyone,

I’m a newbie with Apache and I was wondering if someone could help me troubleshoot a problem I’m having with running a website on my virtual host. I installed XAMPP 1.8.3 (xampp-win32-1.8.3-4-VC11-installer.exe) on my Windows 8.1. I created a virtual host and put the website in the root directory but when I find the website in a browser (http://mysite.local), the home page doesn't work property. I only see the HTML and the images. The CSS (which is in an include file) isn't read by the browser. The interesting thing is that the interior pages work perfectly in Firefox and IE. The website, however, doesn't fare as well in Chrome. In Chrome, clicking on some of the home page links will give me a 404 error code and only a few of the interior websites run perfectly.

(There is an .htaccess file in the root directory but I removed it and it doesn't seem to solve the problem.)

I’m not really sure how to troubleshoot this problem, and I was hoping someone in this forum could help me out. I have included below (1) the syntax I used to create a virtual host, (2) the error log, (3) Control Panel log, and (4) access log. Please let me know if you need any other information from me.

Thank you in advance!

1. Virtual host

etc\host:

Code: Select all
127.0.0.1   localhost
127.0.0.1    mysite.local


extra\httpd-vhost.conf:

Code: Select all
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" combined
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "C:/Users/mysite.local"
    ServerName mysite.local
    ErrorLog "logs/mysite.local-error.log"
    CustomLog "logs/mysite.local-access.log" combined
    <Directory "C:/Users/mysite.local">
    AllowOverride All
    Require all granted
    </Directory>
</VirtualHost>


2. Error log:

    [Mon Jun 23 09:56:03.935251 2014] [authz_core:error] [pid 1380:tid 1728] [client 127.0.0.1:56705] AH01630: client denied by server configuration: C:/Users/mysite.local/

3. Control Panel Log:

    3:49:32 PM [main] Initializing Control Panel
    3:49:32 PM [main] Windows Version: Windows 8 64-bit
    3:49:32 PM [main] XAMPP Version: 1.8.3
    3:49:32 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
    3:49:32 PM [main] You are not running with administrator rights! This will work for
    3:49:32 PM [main] most application stuff but whenever you do something with services
    3:49:32 PM [main] there will be a security dialogue or things will break! So think
    3:49:32 PM [main] about running this application with administrator rights!
    3:49:32 PM [main] XAMPP Installation Directory: "c:\xampp\"
    3:49:32 PM [main] Checking for prerequisites
    3:49:32 PM [main] All prerequisites found
    3:49:32 PM [main] Initializing Modules
    3:49:32 PM [Apache] Problem detected!
    3:49:32 PM [Apache] Port 80 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
    3:49:32 PM [Apache] Apache WILL NOT start without the configured ports free!
    3:49:32 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
    3:49:32 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
    3:49:32 PM [Apache] Problem detected!
    3:49:32 PM [Apache] Port 443 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
    3:49:32 PM [Apache] Apache WILL NOT start without the configured ports free!
    3:49:32 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
    3:49:32 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
    3:49:32 PM [main] Starting Check-Timer
    3:49:32 PM [main] Control Panel Ready
    4:02:24 PM [Apache] Problem detected!
    4:02:24 PM [Apache] Port 80 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
    4:02:24 PM [Apache] Apache WILL NOT start without the configured ports free!
    4:02:24 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
    4:02:24 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
    4:02:24 PM [Apache] Problem detected!
    4:02:24 PM [Apache] Port 443 in use by "C:\WINDOWS\syswow64\wwahost.exe" with PID 7620!
    4:02:24 PM [Apache] Apache WILL NOT start without the configured ports free!
    4:02:24 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
    4:02:24 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
    4:02:24 PM [Apache] Attempting to start Apache app...
    4:02:24 PM [Apache] Status change detected: running
    4:02:24 PM [mysql] Attempting to start MySQL app...
    4:02:25 PM [mysql] Status change detected: running
    4:02:25 PM [filezilla] Attempting to start FileZilla app...
    4:02:26 PM [filezilla] Status change detected: running

And here is the access log:

    127.0.0.1 - - [23/Jun/2014:16:02:41 -0400] "GET /favicon.ico HTTP/1.1" 404 1057 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [23/Jun/2014:16:02:53 -0400] "GET /serices/salesforce-data-visualization.html HTTP/1.1" 404 1187 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [23/Jun/2014:16:03:05 -0400] "GET /about HTTP/1.1" 301 338 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [23/Jun/2014:16:03:05 -0400] "GET /about/ HTTP/1.1" 200 9722 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [23/Jun/2014:16:32:22 -0400] "GET / HTTP/1.1" 200 11735 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
    127.0.0.1 - - [23/Jun/2014:16:32:26 -0400] "GET / HTTP/1.1" 200 11735 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
    127.0.0.1 - - [23/Jun/2014:16:32:29 -0400] "GET /industries/ HTTP/1.1" 200 11932 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
    127.0.0.1 - - [23/Jun/2014:16:32:33 -0400] "GET /services/ HTTP/1.1" 200 10345 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
    127.0.0.1 - - [23/Jun/2014:16:32:36 -0400] "GET /about/contact.html HTTP/1.1" 200 10615 "http://mysite.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
asheth77
 
Posts: 4
Joined: 23. June 2014 19:10
Operating System: Windows 8

Re: Browsers don’t render website when using virtual host

Postby jcarlos71 » 24. June 2014 02:00

I thing that you are mixing absolute y relative in your scripts, try to use relative address ../css/file.css and never
jcarlos71
 
Posts: 1
Joined: 24. June 2014 01:55
Operating System: Windows

Re: Browsers don’t render website when using virtual host

Postby asheth77 » 24. June 2014 14:00

Hi jcarlos71,

Thanks very much for your reply. I have already checked to make sure that we are using relative paths in the code, so unfortunately I don't think that is the answer.

I believe that problem lies in the error log, which says "AH01630: client denied by server configuration." I suspect that I need to modify the configuration files, but I'm not exactly sure what to do.

Thanks again for your reply!
asheth77
 
Posts: 4
Joined: 23. June 2014 19:10
Operating System: Windows 8

Re: Browsers don’t render website when using virtual host

Postby Altrea » 24. June 2014 14:24

What is the contents of your Apache access.log?
Did you already check your subrequests with a tool like Firebug?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Browsers don’t render website when using virtual host

Postby asheth77 » 24. June 2014 18:54

Hi Altrea,

Thanks for your comment! I appreciated your suggestion that I should check the subrequests. I examined them closely using Chrome Dev Tools and discovered that the browsers are not reading the include files on the home page. The include files contain links to the CSS and Javascript files. The browsers don't have a problem reading the include files in the interior pages, however. Do you know why this is happening?

Per your request, I have included below the last several entries in my Apache access.log. They are from a few days ago, however. There are no entries from today or yesterday. Thanks for your help, and please let me know if you need any other information from me!


    127.0.0.1 - - [19/Jun/2014:13:32:35 -0400] "GET /index.html HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:32:35 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:33:08 -0400] "GET /index.html HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:33:08 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:33:12 -0400] "GET /index.html HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:33:12 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:33:18 -0400] "GET / HTTP/1.1" 403 1059 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:33:18 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:37:55 -0400] "GET / HTTP/1.1" 403 1059 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:37:56 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:41:32 -0400] "GET / HTTP/1.1" 403 1059 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:41:32 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:41:36 -0400] "GET / HTTP/1.1" 403 1059 "http://aptaria.local/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:13:41:36 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:14:19:13 -0400] "GET / HTTP/1.1" 403 1059 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
    127.0.0.1 - - [19/Jun/2014:14:19:14 -0400] "GET /favicon.ico HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
asheth77
 
Posts: 4
Joined: 23. June 2014 19:10
Operating System: Windows 8

Re: Browsers don’t render website when using virtual host

Postby Altrea » 24. June 2014 19:45

Seems like either Apache does not have the permission to access these files, or a custum user server configuration disallows accessing these files or a third party security software disallows accessing these files
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Browsers don’t render website when using virtual host

Postby asheth77 » 25. June 2014 14:23

Hi Altrea,

Again, I really appreciate your help. One last question: what's the best way to troubleshoot this? While I review the Apache documentation to solve this problem, what else can I do. I temporarily disabled my anti-virus software and that didn't seem to do the trick. How about creating a different User/Group? Would that change the configuration settings? While doing Google searches, I've noticed some people have changed the default user and group name and this has helped them establish a virtual host.

How about reinstalling XAMPP from zip files rather than an .exe?

I guess I'm just throwing stuff out there now, but I'm determined to solve this problem! In any case, thanks again for your help!
asheth77
 
Posts: 4
Joined: 23. June 2014 19:10
Operating System: Windows 8


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 111 guests