No, leave it where it is because in the httpd.conf file, which apache reads first is a couple of lines that tell it where to look for vhosts configuration file.Deathwing wrote:...Do I move httpd-vhosts.conf from the "extra" folder to main or leave in the "extra" folder?
# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"
127.0.0.1 localhost
127.0.0.1 website.com
ServerAlias www.website.com
ScriptAlias /cgi-bin/ "D:/xampp/htdocs/website/cgi-bin/"
ScriptAlias /cgi-bin/ "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache/cgi-bin/"
It is also normal practice when working at localhost level to empty your browser's cache (Temporary Internet Files) very often especially if you think that you have an unexplainable issue appear.NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "D:/applications/xampp/htdocs" <- should be the same as in your httpd.conf file
<Directory "D:/applications/xampp/htdocs" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName fairykingdoms.com
ServerAlias http://www.fairykingdoms.com
DocumentRoot "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache" <-No slash
ServerAdmin serveradmin@fairykingdoms.com
<Directory "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache"> <-No slash
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "D:/My Documents/Merlin/Creative/Fairy Kingdoms/Apache/cgi-bin/" <-Create this folder in here and keep the slash
CustomLog domlogs/website_access.log combined
ErrorLog domlogs/website_error.log
LogLevel error
</VirtualHost>
Users browsing this forum: No registered users and 69 guests