From: nishi Date: Tue, 16 Apr 2024 06:21:12 +0000 (+0000) Subject: adding mime field X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=0d60aefbee41456bd4d883df057a47d8fe9c271e;p=mandshurica.git adding mime field git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@32 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- diff --git a/Mandshurica/config.c b/Mandshurica/config.c index b1d3a23..86df1dc 100644 --- a/Mandshurica/config.c +++ b/Mandshurica/config.c @@ -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);