Revision [592]

Last edited on 2008-05-21 15:38:28 by FsseInfo
Additions:
>>===apache httpd name based (named) virtual hosts (vhosts)===
==by address or by port==
==first / default virtual host (vhost)==
make sure that the very FIRST named VirtualHost (vhost) you create in httpd.conf points to a "vhdefault.vhdefault" site !
(since all **unmatched** vhosts ALWAYS go to the FIRST / primary / default virtual host vhost listed in httpd.conf !)
ALSO NOTE : An IP based \_default\_ vhost **never** serves a request that was sent to an address / port that is used for **name-based vhost**s. If the request contained an unknown or no host : header it is always served from the FIRST / primary / default name based vhost (i.e. the vhost for that address/port that appears FIRST in the configuration file) !
_default_:443 localhost.localdomain (/etc/httpd/conf.d/ssl.conf:88)
*:80 is a NameVirtualHost
default server vhdefault.vhdefault (/etc/httpd/conf/httpd.conf:999)
port * namevhost vhdefault.vhdefault (/etc/httpd/conf/httpd.conf:999)
Deletions:
>>===apache httpd named virtual hosts (vhosts)===
==named virtual hosts by address or by port==
==default virtual host vhost==
to run named virtual hosts on in httpd.conf then use address of port in each vhost definition and make sure that the very FIRST named VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site ! (since all **unmatched** vhosts default to going to the vhost site that is the primary (**FIRST**) one listed in httpd.conf
NOTE : An IP based \_default\_ vhost **never** serves a request that was sent to an address/port that is used for **name-based vhost**s. If the request contained an unknown or no Host: header it is always served from the primary / **FIRST** name-based vhost (i.e. the vhost for that address/port appearing first in the configuration file).
_default_:443 localhost.localdomain (/etc/httpd/conf.d/ssl.conf:88)
10.10.10.10:* is a NameVirtualHost
default server vdefault.vdefault (/etc/httpd/conf/httpd.conf:999)
port * namevhost vdefault.vdefault (/etc/httpd/conf/httpd.conf:999)


Revision [587]

Edited on 2008-05-21 15:29:42 by FsseInfo
Additions:
# first / default vhost site
# first / default vhost site
Deletions:
ServerName vhd.vhd


Revision [584]

Edited on 2008-05-21 15:26:38 by FsseInfo
Additions:
==named virtual hosts by address or by port==
to enable apache httpd named virtual hosts you must first specify by address or by port (required if you will be running HTTPS SSL port 443 virtual hosts on the same server)
==default virtual host vhost==
to run named virtual hosts on in httpd.conf then use address of port in each vhost definition and make sure that the very FIRST named VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site ! (since all **unmatched** vhosts default to going to the vhost site that is the primary (**FIRST**) one listed in httpd.conf
NOTE : An IP based \_default\_ vhost **never** serves a request that was sent to an address/port that is used for **name-based vhost**s. If the request contained an unknown or no Host: header it is always served from the primary / **FIRST** name-based vhost (i.e. the vhost for that address/port appearing first in the configuration file).
==address based named virtual hosts & default first site==
==port based named virtual hosts & default first site==
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName vhd.vhd
_default_:443 localhost.localdomain (/etc/httpd/conf.d/ssl.conf:88)
ApacheVirtualHostsByAddress
ApacheVirtualHostsByPort
Deletions:
to enable apache httpd named virtual hosts you must first specify an address
or a port if you are using SSL on the same server
to run named virtual hosts on in httpd.conf then use address of port in each vhost definition and make sure that the very FIRST named VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site !
(since all **unmatched** vhosts default to going to the vhost site that is the primary / **FIRST** one listed in httpd.conf)
NOTE : An IP based \_default\_ vhost **never** serves a request that was sent to an address/port that is used for **name-based vhost**s.
If the request contained an unknown or no Host: header it is always served from the primary / **FIRST** name-based vhost
(i.e. the vhost for that address/port appearing first in the configuration file).
DocumentRoot /var/www/my.server
ServerName my.server
<Directory "/var/www/my.server">
allow from all
Options +Indexes
</Directory>


Revision [527]

Edited on 2008-05-07 14:16:16 by FsseInfo
Additions:
to enable apache httpd named virtual hosts you must first specify an address
or a port if you are using SSL on the same server
NameVirtualHost *:80
to run named virtual hosts on in httpd.conf then use address of port in each vhost definition and make sure that the very FIRST named VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site !
Deletions:
to enable apache httpd named virtual hosts you must first specify an address to run named virtual hosts on in httpd.conf
then make sure that the very FIRST named VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site !


Revision [523]

Edited on 2008-05-07 07:13:44 by FsseInfo
Additions:
>>===apache httpd named virtual hosts (vhosts)===
to enable apache httpd named virtual hosts you must first specify an address to run named virtual hosts on in httpd.conf
then make sure that the very FIRST named VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site !
Deletions:
>>==named virtual host (vhost)==
to enable virtual hosts you must specify an address to run named virtual hosts on
make sure that the very FIRST name VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site !


Revision [522]

Edited on 2008-05-07 07:08:37 by FsseInfo
Additions:
make sure that the very FIRST name VirtualHost you create in httpd.conf (optionally using webmin) points to a "vhdefault.vhdefault" site !
ServerName vhdefault.vhdefault
==httpd -S==
use httpd -S to Syntax check your httpd.conf file before reloading or restarting apache httpd
# httpd -S
VirtualHost configuration:
10.10.10.10:* is a NameVirtualHost
default server vdefault.vdefault (/etc/httpd/conf/httpd.conf:999)
port * namevhost vdefault.vdefault (/etc/httpd/conf/httpd.conf:999)
port * namevhost fsse.info (/etc/httpd/conf/httpd.conf:1000)
port * namevhost osde.info (/etc/httpd/conf/httpd.conf:1004)
port * namevhost voippix.info (/etc/httpd/conf/httpd.conf:1014)
port * namevhost vizz.info (/etc/httpd/conf/httpd.conf:1026)
wildcard NameVirtualHosts and _default_ servers:
Syntax OK
Deletions:
make sure that the very FIRST name VirtualHost you create in httpd.conf (optionally using webmin) points to a "defaultvhost.defaultvhost" site !
ServerName defaultvhost.defaultvhost
<Directory "/var/www/html">
allow from all
Options +Indexes
</Directory>


Revision [521]

Edited on 2008-05-07 06:36:59 by FsseInfo
Additions:
(since all **unmatched** vhosts default to going to the vhost site that is the primary / **FIRST** one listed in httpd.conf)
NOTE : An IP based \_default\_ vhost **never** serves a request that was sent to an address/port that is used for **name-based vhost**s.
If the request contained an unknown or no Host: header it is always served from the primary / **FIRST** name-based vhost
(i.e. the vhost for that address/port appearing first in the configuration file).
Deletions:
(since all **unmatched** vhosts default to going to the vhost site that is the **FIRST** one listed in httpd.conf)


Revision [520]

Edited on 2008-05-07 06:30:47 by FsseInfo
Additions:
>>==named virtual host (vhost)==
to enable virtual hosts you must specify an address to run named virtual hosts on
NameVirtualHost 10.10.10.10
make sure that the very FIRST name VirtualHost you create in httpd.conf (optionally using webmin) points to a "defaultvhost.defaultvhost" site !
(since all **unmatched** vhosts default to going to the vhost site that is the **FIRST** one listed in httpd.conf)
<VirtualHost 10.10.10.10>
DocumentRoot "/var/www/html"
ServerName defaultvhost.defaultvhost
<Directory "/var/www/html">
allow from all
Options +Indexes
</Directory>
<VirtualHost 10.10.10.10>
Deletions:
>>==virtual host (vhost)==
<VirtualHost *:*>


Revision [513]

The oldest known version of this page was created on 2008-05-06 12:14:56 by FsseInfo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki