Re: Different directory/test locally
| From: | heinisch at creaction dot de | Date: | Fri, 12 Apr 2002 15:27:45 +0000 |
| Subject: | Re: Different directory/test locally | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92786@lists.php.net to get a copy of this message | ||
At 12.04.2002 14:48, you wrote:
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? Following Information may not work under WIN*. Probably you should askthis question on the window-list, but maybe something works equal to WIN Set up a local DNS-server, (I think it could be emulated by c:/windows/hosts.sam) her you add your new domainname f.e. "iww.foo.com" in httpd.conf add a new <VirtualHost iww.foo.com> DocumentRoot c:/myfiles/foocomfiles Servername iww.foo.com </VirtualHost> and something like: <Directory "c:/myfiles/foocomfiles"> Options Indexes FollowSymLinks AllowOverride Limit </Directory> after restarting apache, the new virtual server should be available ?? HTH Oliver