Tag Archive for 'httpd'

A good win32 apache module binary download site

I found a very good win32 apache module binary download site, English site. You can download many binary module there. such as:

  • mod_perl
  • mod_fcgid
  • mod_macro

and this site is very cool for apache users! ;)

Apache 2.2 Vhost configure

Build Vhost in “extra/httpd-vhosts.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<VirtualHost localhost:80>
    NameVirtualhost localhost
    ServerAdmin root@localhost
    DocumentRoot "/opt/httpd/htdocs"
</VirtualHost>

<VirtualHost sqladmin.localhost:80>
#   NameVirtualhost sqladmin.localhost
    ServerAdmin [email protected]
    DocumentRoot "/opt/www/sqladmin"
    ServerPath "/opt/www/sqladmin"
    ServerName sqladmin.localhost
#   ServerAlias sqladmin.localhost
    <Directory />
    Options Indexes FollowSymLinks MultiViews
    IndexOptions FancyIndexing
    AllowOverride None
    DirectoryIndex index.php
    Order Deny,allow
    Allow from all
    </Directory>
    ErrorLog logs/sqladmin.localhost-error
</VirtualHost>
#
<VirtualHost php.localhost:80>
#   NameVirtualhost php.localhost
    ServerAdmin [email protected]
    DocumentRoot /opt/www/php
    ServerPath /opt/www/php
    <Directory />
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    DirectoryIndex /phpinfo.php
    Order Deny,allow
    Allow from all
    </Directory>
    ServerName php.localhost
    ErrorLog logs/php-error_log
    CustomLog logs/php-access_log common
</VirtualHost>

Let test the config file!

1
2
3
4
5
6
7
8
fred@localhost:php$ sudo /opt/httpd/bin/httpd -S
VirtualHost configuration:
127.0.0.1:80           is a NameVirtualHost
         default server localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:29)
         port 80 namevhost localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:29)
         port 80 namevhost sqladmin.localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:35)
         port 80 namevhost php.localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:53)
Syntax OK