I installed everything, redirected port 80 and configured the files like this:
httpd-vhosts.conf
- Code: Select all
<VirtualHost *:80>
DocumentRoot /xampp/xampp/htdocs/
ServerName localhost
ServerAdmin admin@localhost
</VirtualHost>
<VirtualHost *:80>
ServerName forumisvouga.org
ServerAdmin admin_fisvouga@clix.pt
ServerAlias forumisvouga.pt.vu
DocumentRoot /xampp/xampp/htdocs/forumisvouga.org
<Directory "/xampp/xampp/htdocs/forumisvouga.org">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/xampp/xampp/htdocs/forumisvouga.org">
Options Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .html .htm .shtml .shtm
</Directory>
HostnameLookups Off
ErrorLog /xampp/xampp/htdocs/forumisvouga.org/logs/error.log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /xampp/xampp/htdocs/forumisvouga.org/logs/access.log combined
ServerSignature On
ScriptAlias /cgi-bin/ "/xampp/xampp/htdocs/forumisvouga.org/cgi-bin/"
<Directory "/xampp/xampp/htdocs/forumisvouga.org/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php
AccessFileName .htaccess
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
AddHandler cgi-script .cgi
<IfModule mod_negotiation>
<IfModule mod_include>
Alias /errors/ "/xampp/xampp/htdocs/forumisvouga.org/errors/"
<Directory "/xampp/xampp/htdocs/forumisvouga.org/errors">
AllowOverride None
Options IncludesNoExec
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority pt
</Directory>
</IfModule>
</IfModule>
ErrorDocument 400 /errors/400.html
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 405 /errors/405.html
ErrorDocument 408 /errors/408.html
ErrorDocument 410 /errors/410.html
ErrorDocument 411 /errors/411.html
ErrorDocument 412 /errors/412.html
ErrorDocument 413 /errors/413.html
ErrorDocument 414 /errors/414.html
ErrorDocument 415 /errors/415.html
ErrorDocument 500 /errors/500.html
ErrorDocument 501 /errors/501.html
ErrorDocument 502 /errors/502.html
ErrorDocument 503 /errors/503.html
ErrorDocument 506 /errors/506.html
</VirtualHost>
<VirtualHost *:80>
ServerName blog
ServerAdmin hept@netc.pt
ServerAlias blogsemnexo.pt.vu
DocumentRoot /xampp/xampp/htdocs/blog
<Directory "/xampp/xampp/htdocs/blog">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/xampp/xampp/htdocs/blog">
Options Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .html .htm .shtml .shtm
</Directory>
HostnameLookups Off
ErrorLog /xampp/xampp/htdocs/blog/logs/error.log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /xampp/xampp/htdocs/blog/logs/access.log combined
ServerSignature On
ScriptAlias /cgi-bin/ "/xampp/xampp/htdocs/blog/cgi-bin/"
<Directory "/xampp/xampp/htdocs/blog/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php
AccessFileName .htaccess
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
AddHandler cgi-script .cgi
<IfModule mod_negotiation>
<IfModule mod_include>
Alias /errors/ "/xampp/xampp/htdocs/blog/errors/"
<Directory "/xampp/xampp/htdocs/blog/errors">
AllowOverride None
Options IncludesNoExec
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority pt
</Directory>
</IfModule>
</IfModule>
ErrorDocument 400 /errors/400.html
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 405 /errors/405.html
ErrorDocument 408 /errors/408.html
ErrorDocument 410 /errors/410.html
ErrorDocument 411 /errors/411.html
ErrorDocument 412 /errors/412.html
ErrorDocument 413 /errors/413.html
ErrorDocument 414 /errors/414.html
ErrorDocument 415 /errors/415.html
ErrorDocument 500 /errors/500.html
ErrorDocument 501 /errors/501.html
ErrorDocument 502 /errors/502.html
ErrorDocument 503 /errors/503.html
ErrorDocument 506 /errors/506.html
</VirtualHost>
httpd.conf
- Code: Select all
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
hosts
- Code: Select all
127.0.0.1 localhost
192.168.1.2 localhost
127.0.0.1 forumisvouga.org
127.0.0.1 blog
I guess everything should work fine and it did but when I added my second site people can't access the sites. They're redirected to xampp panel.
I use dyndns updater because I have a dynamic IP and added both sites.
Could you please help me?
And by the way I have a router and two pcs connected and my second pc can't access the site too is that normal?
My sites should be working on:
http://forumisvouga.dyndns.org
http://blogsemnexo.dyndns.org
Thank you.