You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Farid Hamjavar <ha...@unm.edu> on 2002/01/28 05:59:45 UTC

how to check syntax of a stand-alone httpd.conf

Hello,

I am using apache 1.3.22 on Linux (rh7.2) and
subject line pretty much says it all.


I am *not* interested in checking syntax of httpd.conf
of a production environment. I am interested
to be able to check the syntax of a httpd.conf ,sitting
let say, in /tmp/httpd.conf.test   ...

I guess I can not say:
apachectl -f /tmp/httpd.conf.test

or the following for that matter:

httpd -f /tmp/httpd.conf.test which actually starts
a daemon which I do not want to happen....

So how else can I check the syntax of a test stand-alone
config file ....?

Thanks,
Farid
UNM



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: how to check syntax of a stand-alone httpd.conf

Posted by "TD - Sales International Holland B.V." <td...@salesint.com>.
On Monday 28 January 2002 05:59, you wrote:

apachectl is just a script, just edit it and change the paths temporarily

> Hello,
>
> I am using apache 1.3.22 on Linux (rh7.2) and
> subject line pretty much says it all.
>
>
> I am *not* interested in checking syntax of httpd.conf
> of a production environment. I am interested
> to be able to check the syntax of a httpd.conf ,sitting
> let say, in /tmp/httpd.conf.test   ...
>
> I guess I can not say:
> apachectl -f /tmp/httpd.conf.test
>
> or the following for that matter:
>
> httpd -f /tmp/httpd.conf.test which actually starts
> a daemon which I do not want to happen....
>
> So how else can I check the syntax of a test stand-alone
> config file ....?
>
> Thanks,
> Farid
> UNM
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: how to check syntax of a stand-alone httpd.conf

Posted by Farid Hamjavar <ha...@unm.edu>.
Hello,

Never mind ..... I did not see "-t" in the man page ...
httpd -f /tmp/httpd.conf.test -t #is the way to do it  ...

Thanks,
Farid
UNM



On Sun, 27 Jan 2002, Farid Hamjavar wrote:

> Date: Sun, 27 Jan 2002 21:59:45 -0700 (MST)
> From: Farid Hamjavar <ha...@unm.edu>
> Reply-To: users@httpd.apache.org
> To: users@httpd.apache.org
> Subject: how to check syntax of a stand-alone httpd.conf 
> 
> 
> Hello,
> 
> I am using apache 1.3.22 on Linux (rh7.2) and
> subject line pretty much says it all.
> 
> 
> I am *not* interested in checking syntax of httpd.conf
> of a production environment. I am interested
> to be able to check the syntax of a httpd.conf ,sitting
> let say, in /tmp/httpd.conf.test   ...
> 
> I guess I can not say:
> apachectl -f /tmp/httpd.conf.test
> 
> or the following for that matter:
> 
> httpd -f /tmp/httpd.conf.test which actually starts
> a daemon which I do not want to happen....
> 
> So how else can I check the syntax of a test stand-alone
> config file ....?
> 
> Thanks,
> Farid
> UNM
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org