<p dir="ltr">All directives should fall between the VirtualHost container elements for a given named virtual host.</p>
<div class="gmail_quote">On Jun 11, 2014 5:26 PM, <<a href="mailto:techlists@phpcoderusa.com">techlists@phpcoderusa.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Hi,<br>
<br>
I just set up a new CentOS 6.5 LAMP box. I am in the process of configuring the vhosts.<br>
<br>
I created a file /etc/httpd/conf.d/vhosts.conf and the docroot to go with the vhost definition. So far so good.<br>
<br>
What I am wondering about is if I can do something like this in the vhost.conf file:<br>
<br>
<VirtualHost *:80><br>
<br>
<Directory /home/username/public_html/><br>
Options Indexes FollowSymLinks MultiViews<br>
AllowOverride All<br>
Order allow,deny<br>
allow from all<br>
</Directory><br>
<br>
DocumentRoot /home/username/public_html<br>
ServerName domain.tld<br>
</VirtualHost><br>
<br>
<br>
Or would it be more proper to do something like this:<br>
<br>
<Directory /home/username/public_html/><br>
Options Indexes FollowSymLinks MultiViews<br>
AllowOverride All<br>
Order allow,deny<br>
allow from all<br>
</Directory><br>
<br>
<br>
<VirtualHost *:80><br>
DocumentRoot /home/username/public_html<br>
ServerName domain.tld<br>
</VirtualHost><br>
<br>
<br>
<br>
Thanks in advance for your input!!<br>
<br>
Keith<br>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a><br>
</blockquote></div>