httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Darman <joseph.dar...@yahoo.com>
Subject Re: [users@httpd] NameVirtualHost address is not supported
Date Sun, 20 Apr 2014 00:10:42 GMT
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@gmail.com> wrote:
 
On Sat, Apr 19, 2014 at 9:32 AM, Michael Peters
<michael.peters@lazarusalliance.com> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Mime
View raw message