Re: Different folder/ local test

From: Date: Fri, 12 Apr 2002 14:57:31 +0000
Subject: Re: Different folder/ local test
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13054@lists.php.net to get a copy of this message
You could create a VirtualHost using the VirtualHost directive in the hhtpd.conf. It could look like this: <Directory C:/WINDOWS/Desktop/work> Options FollowSymLinks AllowOverride None </Directory> <VirtualHost *:122345> ServerAdmin webmaster@dummy-host.example.com DocumentRoot C:/WINDOWS/Desktop/work ServerName dummy-host.example.com </VirtualHost> now u can access the direcotry via: http://localhost:12345 fabian "Tiago SimõEs" <kaos@netcabo.pt> schrieb im Newsbeitrag news:20020412134707.4763.qmail@pb1.pair.com... > Hello. > > I still can't manage to test locally the pages in my notebook, without using > the htdocs directory. As i told you, i managed to install the all the stuff > correctly, made my first test with a php script in the htdocs Apache > instalation folder, but when i tried to put that new directory path in the > httpd.conf file i couldn't see the php script on the designated folder. I > know that in the other case i had to access via http://localhost/test.php > > path. How do i test a page that is, let's say, in the c:\website\ folder? > (after i configured its path in httpd.conf file, of course) > > i know that i should put something like this in the httpd.conf file > > <Directory "C:\WINDOWS\Desktop\work"> > AddType application/x-httpd-php .php .phtml .php3 > #Next line is optional (for viewing source) > AddType application/x-httpd-php-source .phps > </Directory> > > but after that, what path i put in the browser? > > Thanks in advance, > Tiago > >

« previous php.windows (#13054) next »