Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hey all,
quick apache question....I'm trying to setup a test server.
changed httpd.conf on the test server to handle a new
site...called 'test2' here is the virtual host configuration for
this....(barely anything there)...also, note the
NameVirtualHost directive.
--- start apache conf ---NameVirtualHost test2:80
<VirtualHost test2:80>
DocumentRoot /usr/local/apache/htdocs/chnm_test
ServerName chnm_test
ServerAlias chnm2
Alias / /usr/local/apache/htdocs/chnm_test/
</VirtualHost>--- End apache conf ---
Okay, for some reason the site is still going to the default
'htdocs' directory when I include the NameVirtualHost
Directive...if I take it out, and use the IP or * under the
VirtualHost, the index page of my site loads.My MAIN problem is this. For some reason, I cannot seem
to access the VirtualHost root directory. I try to do this
using php includes....in the form of '/images/test.gif'
where I want the file under /usr/local/apache/htdocs/
chnm_test/images/test/gif to serve. I also tried using the
alias directive under virtual host to no avail.Can someone supply a very basic virtual host
configuration that allows for this "site root" accessibility?
Or, is php the problem? I dunno...any help is appreciated..many thanks as always....

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |