Re: NameVirtualHost address is not supported

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This worked for me. I have the domain names registered in godaddy. I had to go into godaddy "DNS Zone File" and "point" the domain names to my external IP address.   Don't use "settings" "forwarding"




NameVirtualHost *:80


# ********************Begin First Web Page ***********************************

<VirtualHost *:80>
    DocumentRoot "C:/Server/Apache2.2/www/Site1/htdocs"
    Servername Site1.com
    ServerAlias www.site1.com
    ErrorLog "logs/site1.localhost-error.log"
    CustomLog "logs/site1.localhost-access.log" common

   <Directory />
       Options FollowSymLinks
       AllowOverride None
       Order deny,allow
       Deny from all
   </Directory>
#
   <Directory "C:/Server/Apache2.2/www/site1/htdocs">
       Options Indexes FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>

</VirtualHost>

# ******************End First Web Page ***********************************
#
#
#
#
#****************Begin Second Web Page ****************************

<VirtualHost *:80>
    DocumentRoot "C:/Server/Apache2.2/www/Site2/htdocs"
    ServerName site2.us
    ServerAlias www.site2.us
    ErrorLog "logs/site2.localhost-error.log"
    CustomLog "logs/site2.localhost-access.log" common
#
   <Directory />
       Options FollowSymLinks
       AllowOverride None
       Order deny,allow
       Deny from all
   </Directory>
#
   <Directory "C:/Server/Apache2.2/www/site2/htdocs">
       Options Indexes FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>
</VirtualHost>

# ********************End Second Web Page **********************************
#

On Saturday, April 19, 2014 6:51 AM, Eric Covener <covener@xxxxxxxxx> wrote:
On Sat, Apr 19, 2014 at 9:32 AM, Michael Peters
<michael.peters@xxxxxxxxxxxxxxxxxxx> wrote:
> IS it ok to have directory statements like this and virtualhost together?
>
> <Directory "/www/html/site_1">
>    Options Indexes FollowSymLinks
>    AllowOverride None
>    Order allow,deny
>    Allow from all
> </Directory>

Yes. They're independent.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux