1827894 Members
1769 Online
109969 Solutions
New Discussion

Re: Server.xml file

 
Kyle D. Harris
Regular Advisor

Server.xml file

In making my server.xml file from scratch, im going off a website. Here is part of the server.xml file .. My question is if anybody can explain to me what they mean by "your engine" and "your domain" below. If you can give an example of what they mean, that'd be good. Thanks


prefix="catalina_log." suffix=".txt"
timestamp="true"/>


4 REPLIES 4
Kyle D. Harris
Regular Advisor

Re: Server.xml file

Are they talking about for Engine like "standalone" and for domain like "localhost"... ???
Olivier Drouin
Trusted Contributor

Re: Server.xml file

engine name can be an arbitrary value ( stock, it is "Standalone") . You can then use it to reference the engine in the rest of the file.

Normally defaultHost would be "localhost".

I dont think you should create it from scratch *unless* you know what you're doing.
Kyle D. Harris
Regular Advisor

Re: Server.xml file

Well actually i have NO clue what i'm doing. I just go off this site:

http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

Part 4.2

It is pretty good barney style and word for word so i've been going off that.
Olivier Drouin
Trusted Contributor

Re: Server.xml file

Ok, nice.
Try replacing your_engine by Standalone and you_domain by localhost

I would also add

directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t %r %s %b %H %p" resolveHosts="false"/>



between and so you have an access log.