]> Nishi Git Mirror - mandshurica.git/commitdiff
adding mime field
authornishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Tue, 16 Apr 2024 06:21:12 +0000 (06:21 +0000)
committernishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Tue, 16 Apr 2024 06:21:12 +0000 (06:21 +0000)
git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@32 f982e544-4a7d-3444-ad1a-fde59a2a69f1

Mandshurica/config.c

index b1d3a2389e28a7bf965951000e0c373a76783c2b..86df1dce53425ebde1c07d16080f64de1cb43f99 100644 (file)
@@ -203,6 +203,9 @@ int mandshurica_create_config(const char* path) {
                fprintf(f, "Set HTTPPort 1024\n");
                fprintf(f, "Set HTTPRoot %s\n", WEBROOT_PREFIX);
                fprintf(f, "\n");
+               fprintf(f, "Set HTTPMIME.html text/html\n");
+               fprintf(f, "Set HTTPMIME.gif image/gif\n");
+               fprintf(f, "\n");
                fprintf(f, "LoadModule %s/basic.so\n", MODULE_PREFIX);
                fprintf(f, "LoadModule %s/http.so\n", MODULE_PREFIX);
                fprintf(f, "LoadModule %s/subversion.so\n", MODULE_PREFIX);