> /usr/sbin/apxs -g -n hello_world (-g:テンプレート生成、-n:モジュール名指定) これでhello_worldディレクトリが作成されました。そのディレクトリへ移動します。 ② コードの修正・追記 ソースコード(mod_hello_world.c)を次のように修正・追記します。 /** * mod_hello_world.c -- Apache sample hello_world module */ #include "httpd.h"#include "http_config.h"#include "http_protocol.h"#include "ap_config.h" #define DEFAULT_AVAILABLE 0 /** * モジュールの設定に関する部分 *//* モジュールの設定を表す構造体を定義する */typedef str
![手軽に出来るApacheモジュール開発②](https://cdn-ak-scissors.b.st-hatena.com/image/square/39e482c008d605a5b5f9180e98756d084baf2b67/height=288;version=1;width=512/https%3A%2F%2Fblog.asial.co.jp%2Fogp-logo.jpg)