Vhost mod rewrite

James Dugger james.dugger at gmail.com
Thu Jun 12 00:48:52 MST 2014


All directives should fall between the VirtualHost container elements for a
given named virtual host.
On Jun 11, 2014 5:26 PM, <techlists at phpcoderusa.com> wrote:

>
>
> Hi,
>
> I just set up a new CentOS 6.5 LAMP box.  I am in the process of
> configuring the vhosts.
>
> I created a file /etc/httpd/conf.d/vhosts.conf and the docroot to go with
> the vhost definition.  So far so good.
>
> What I am wondering about is if I can do something like this in the
> vhost.conf file:
>
> <VirtualHost *:80>
>
>    <Directory /home/username/public_html/>
>        Options Indexes FollowSymLinks MultiViews
>        AllowOverride All
>        Order allow,deny
>        allow from all
>    </Directory>
>
>     DocumentRoot /home/username/public_html
>     ServerName domain.tld
> </VirtualHost>
>
>
> Or would it be more proper to do something like this:
>
> <Directory /home/username/public_html/>
>        Options Indexes FollowSymLinks MultiViews
>        AllowOverride All
>        Order allow,deny
>        allow from all
> </Directory>
>
>
> <VirtualHost *:80>
>     DocumentRoot /home/username/public_html
>     ServerName domain.tld
> </VirtualHost>
>
>
>
> Thanks in advance for your input!!
>
> Keith
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20140612/6c7eb03c/attachment.html>


More information about the PLUG-discuss mailing list