/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by chopp, Tue Oct 8 14:40:22 2002 UTC revision 1.24 by chopp, Thu Oct 10 16:08:53 2002 UTC
# Line 164  Line 164 
164  }  }
165    
166  %token SET LOGFILE DAEMON SYSLOG MAILSERVER HTTPD HTTPDS ALLOW ADDRESS INIT  %token SET LOGFILE DAEMON SYSLOG MAILSERVER HTTPD HTTPDS ALLOW ADDRESS INIT
167  %token PEMFILE  %token PEMFILE ENABLE DISABLE HTTPDSSL
168  %token CHECK PIDFILE START STOP  %token CHECK PIDFILE START STOP
169  %token HOST PORT TYPE UDP TCP TCPSSL PROTOCOL  %token HOST PORT TYPE UDP TCP TCPSSL PROTOCOL
170  %token ALERT MAILFORMAT UNIXSOCKET  %token ALERT MAILFORMAT UNIXSOCKET
# Line 282  setmailformat   : SET MAILFORMAT '{' for Line 282  setmailformat   : SET MAILFORMAT '{' for
282                   }                   }
283                  ;                  ;
284    
285  sethttpd        : SET HTTPD PORT NUMBER bindaddress allowlist {  sethttpd        : SET HTTPD PORT NUMBER ssl bindaddress allowlist {
286                     Run.dohttpd= TRUE;                     Run.dohttpd= TRUE;
                    Run.httpdssl= FALSE;  
                    Run.httpdport= $4;  
                  }  
                 | SET HTTPDS PORT NUMBER bindaddress pemfile allowlist {  
                    if(!have_ssl()) {  
                      error("%s: SSL is not supported at line %d\n",  
                            prog, lineno-1);  
                      cfg_errflag++;  
                    }  
                    Run.dohttpd= TRUE;  
                    Run.httpdssl= TRUE;  
287                     Run.httpdport= $4;                     Run.httpdport= $4;
288                   }                   }
289                  ;                  ;
# Line 304  bindaddress     : /* EMPTY */ { Run.bind Line 293  bindaddress     : /* EMPTY */ { Run.bind
293                  | ADDRESS STRING { Run.bind_addr= $2; }                  | ADDRESS STRING { Run.bind_addr= $2; }
294                  ;                  ;
295    
296    ssl             : /* EMPTY */ { Run.httpdssl= FALSE; }
297                    | HTTPDSSL DISABLE { Run.httpdssl= FALSE; }
298                    | HTTPDSSL ENABLE pemfile{
299                      Run.httpdssl= TRUE;                  
300                      if(!have_ssl()) {
301                         error("%s: SSL is not supported at line %d\n",
302                               prog, lineno-1);
303                         cfg_errflag++;
304                       }
305                     }
306                    | HTTPDSSL pemfile{
307                      Run.httpdssl= TRUE;                  
308                      if(!have_ssl()) {
309                         error("%s: SSL is not supported at line %d\n",
310                               prog, lineno-1);
311                         cfg_errflag++;
312                       }
313                     }
314                    ;
315    
316  pemfile         : PEMFILE PATH { Run.httpsslpem= $2; }  pemfile         : PEMFILE PATH { Run.httpsslpem= $2; }
317                  ;                  ;
318    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26