IPv6 Implementation [BAB IV] – FreeBSD Apache/HTTPD

Posted on December 6, 2007. Filed under: Apache, IPv6 |

httpd.conf sample configuration – ipv6
This just simple http.conf sample for building ipv6 enabled website.
All domain showed on below’s config not a truly one which had been replaced
Please ensure your domain record added on your ipv6 enabled DNS server.
And change all related files (logs, etc) associate to your config.
This configuration tested and is running on apache 2.0 – web server.
a. rahman isnaini r.sutan


ServerRoot “/usr/local/apache2/”
Listen 80

LoadModule php5_module modules/libphp5.so
<IfModule !mpm_netware_module>

User daemon
Group daemon

ServerAdmin risnaini@ipv6.indo.net.id
ServerName ipv6.risnaini.net :80
DocumentRoot “/usr/local/apache2/htdocs”

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
<Directory “/usr/local/apache2//htdocs”>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<IfModule dir_module>
DirectoryIndex index.html index.php index.htm
<FilesMatch “^\.ht”>
Order allow,deny
Deny from all
Satisfy All

ErrorLog logs/error_log
LogLevel warn

<IfModule log_config_module>
LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” combined
LogFormat “%h %l %u %t \”%r\” %>s %b” common

<IfModule logio_module>
LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” %I %O” combinedio
CustomLog logs/access_log common

<IfModule alias_module>
ScriptAlias /cgi-bin/ “/usr/local/apache2//cgi-bin/”

<IfModule cgid_module>
<Directory “/usr/local/apache2//cgi-bin”>
AllowOverride None
Options None
Order allow,deny
Allow from all

DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

NameVirtualHost 2404:170:ee02::10:80

<VirtualHost 2404:170:ee02::10:80>
ServerName ipv6.risnaini.net
DocumentRoot /usr/local/apache2/htdocs
ServerAdmin noc-team@indo.net.id
ErrorLog /usr/local/apache2/logs/risnaini.net_error_log
CustomLog /usr/local/apache2/logs/ipv6.risnaini.net_access_log common


Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: