Welcome to Ask Ozar.net !
Welcome to Ask Ozar.net, where you can ask questions and receive answers from other members of the community.
0 votes
I have a directory on my computer outside my Apache web server installation. I wrote a couple of PHP applications in this directory and my development is continuing. Every time I have a major milestone, I copy the php files to a folder in htdocs directory of the apache web server.

My question is how can I host my application from the external directory (i.e. E:\phpdev\myapplication ) ?
in Web & Application Server Administration / Configuration by (120 points)

1 Answer

0 votes

Assuming your default web port on Apache is 80, enter the following definition in the file named httpd-vhosts.conf (in <Apache Installation>/config below any other virtual hosts:

 

<VirtualHost *:80>
  ServerName yourapp
  DocumentRoot "E:\phpdev\yourapplication"
</VirtualHost>


 

<Directory "E:\phpdev\yourapplication">
  Options Indexes FollowSymLinks
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

 

by (330 points)

Related questions

0 votes
0 answers
+1 vote
1 answer
0 votes
1 answer
...