Subversion Repositories Tewi

Rev

Rev 129 | Rev 132 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 129 Rev 131
Line 1... Line 1...
1
/* $Id: genconf.c 129 2024-09-23 10:21:20Z nishi $ */
1
/* $Id: genconf.c 131 2024-09-23 10:30:00Z nishi $ */
2
 
2
 
3
#include "../config.h"
3
#include "../config.h"
4
 
4
 
5
#include <stdio.h>
5
#include <stdio.h>
6
 
6
 
7
int main(int argc, char** argv) {
7
int main(int argc, char** argv) {
8
	if(argc < 2) {
8
	if(argc < 4) {
9
		return 1;
9
		return 1;
10
	}
10
	}
11
	printf("##\n");
11
	printf("##\n");
12
	printf("## tewi.conf -- Tewi HTTPd configuration file\n");
12
	printf("## tewi.conf -- Tewi HTTPd configuration file\n");
13
	printf("##\n");
13
	printf("##\n");
Line 16... Line 16...
16
	printf("\n");
16
	printf("\n");
17
	printf("ServerRoot %s\n", argv[1]);
17
	printf("ServerRoot %s\n", argv[1]);
18
	printf("\n");
18
	printf("\n");
19
	printf("ServerAdmin %s\n", SERVER_ADMIN);
19
	printf("ServerAdmin %s\n", SERVER_ADMIN);
20
	printf("\n");
20
	printf("\n");
21
	printf("LoadModule lib/tewi/mod_cgi.so\n");
21
	printf("LoadModule %s/mod_cgi.%s\n", argv[2], argv[3]);
22
	printf("#LoadModule lib/tewi/mod_proxy.so\n");
22
	printf("#LoadModule %s/mod_proxy.%s\n", argv[2], argv[3]);
23
	printf("\n");
23
	printf("\n");
24
	printf("Listen 80\n");
24
	printf("Listen 80\n");
25
	printf("#ListenSSL 443\n");
25
	printf("#ListenSSL 443\n");
26
	printf("\n");
26
	printf("\n");
27
	printf("#SSLKey key.pem\n");
27
	printf("#SSLKey key.pem\n");