|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Apache 1.3.28 on Windows XP
In my http.conf file I have two Virtual Hosts. They are configured practically the same way: <VirtualHost www.mywebs> ServerAdmin webmaster@mywebs ServerName www.mywebs DocumentRoot "D:/MyWebs" ErrorLog logs/mywebs.example.com-error_log CustomLog logs/mywebs.example.com-access_log common </VirtualHost> <VirtualHost *> ServerAdmin webmaster@localhost.com ServerName www.dunav.dom DocumentRoot "D:/My Documents/My Webs/dunav" ErrorLog logs/dunav-host.example.com-error_log CustomLog logs/dunav-host.example.com-access_log common </VirtualHost> In the first case I am allowed to see the content of root directory but in the case of www.dunav.dom I can see just index file, otherwise I am getting 403 error: “Forbidden You don't have permission to access / on this server” What is the catch? Thank you all in advance, Miroslav ![]() |
|
#2
|
||||
|
||||
|
Does the Web user have permission to read that directory?
|
|
#3
|
|||
|
|||
|
Quote:
Obviously I have to start from the beginning: At my local machine I have installed Apache 2.0.47 and Apache 1.3.28 and I don’t run them in the seam time. I use them just to test my PHP and MySql scripts. At each server I have made 5 Virtual Hosts, configured practically the same way. Writing this message and wrestling with my English I noticed that at both servers, virtual host which are not at the path of localhost don’t let my see directory content (Forbiden...), but index file. Others, at the localhost path do not show 403 Error. The right question had to be: How I can control it and how I can assign permissions to each particular Virtual Host. Sorry that I didn’t formulate the problem correctly at the first place! Thanks, Miroslav PS: OS Windows XP professional. |
|
#4
|
||||
|
||||
|
I've never run apache on Windows, so I may not be the best person to help out with this. I imagine you could just right-click the folder in question (D:/My Documents/My Webs/duna) and change the permissions, making it readable by anybody. Or you could try creating subfolders within D:/MyWebs and pointing the DocumentRoot directives to those. Perhaps that's what you're already attempting -- if so, your error may be that you've got an extra "My Documents" in the second virtual host entry listed below.
|
|
#5
|
|||
|
|||
|
Problem continued....
I have similar problem too...
I want 2 virtual sites: one for localhost, and another one for home.localhost I tried to put this in hosts file: 127.0.0.1 localhost 127.0.0.1 home.localhost and this to httpd.conf: NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerName localhost DocumentRoot d:/phpdev/www </VirtualHost> <VirtualHost 127.0.0.1> ServerName home.localhost DocumentRoot d:/phpdev/www/home </VirtualHost> there is no chance for this to work... I tried lots of other combinations, too... please help!pyc P.S.: pozdrav za komsiju (pokretaca ovog treda).... ![]() |
|
#6
|
|||
|
|||
|
Are you trying to see the directory listing ? i.e. all files in a directory through browser.
|
|
#7
|
|||
|
|||
|
Quote:
yes, but that was not the problem... the problem was with order of directives... you must place subdomains first, in httpd.conf file, definitely... and i think it's a bug, ain't it? pyc |
|
#8
|
||||
|
||||
|
Re: Problem continued....
Quote:
Change NameVirtualHost 127.0.0.1 to NameVirtualHost * Then change this Code:
<VirtualHost 127.0.0.1> ServerName localhost DocumentRoot d:/phpdev/www </VirtualHost> <VirtualHost 127.0.0.1> ServerName home.localhost DocumentRoot d:/phpdev/www/home </VirtualHost> Code:
<VirtualHost *> ServerName localserver DocumentRoot d:/phpdev/www/ </VirtualHost> <VirtualHost *> ServerName home.localserver DocumentRoot d:/phpdev/www/home/ </VirtualHost> And see if that works For my setup, I actually have a hosting directory (for the sites that I host) and a htdocs directory where my main site is located.. Try that though and let me know how it works for you.. |
|
#9
|
|||
|
|||
|
Re: Re: Problem continued....
Quote:
I already said: the problem was in the right order of domains listed in directive: you must put subdomains first... pyc |
|
#10
|
|||
|
|||
|
I have similar problem too...
1) I can't look any subdirectory 2) I can use Index.HTML, bu I can't use Index.ASP How can I set, that I can use Index.ASP instead Index.html! Regards! Hine |
|
#11
|
||||
|
||||
|
Quote:
__________________
Click the image if at any point you don't like my decision.Ask the Windows Guru! |
|
#12
|
|||
|
|||
|
i gave up
i will get bizz in somthing else.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache VirtualHost Problem! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|