[Beginners Corner] - Re: IPs and URLs logging in JBoss
by dgenkin
By some reason it cut my last post. I am reposting it:
"PeterJ" wrote : Try uncommenting the RequestDumperValve in server.xml and see if that does it.
|
| In JBossAS 4.2.3, server.xml is located at server/xxx/deploy/jboss-web.deployer
Thanks, Peter. This provides excessvie logging, unfortunately.
I have found another interesting thing in the server.xml for access logging and this is actually what i need, but i cannot find where i specify the pattern.
Below is this logger funtionality. It has pattern='combined', can be 'common'. Where do i specify this pattern details? I need to add something like this LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined. Then i will log everything i need.
<!-- Access logger -->
by some reason the details of the access logger are getting cut here, unless i dont remove opening and closing tags, so i had to remove them:
<!--
Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="access_log." suffix=".log"
pattern="combined" directory="/log"
resolveHosts="false"
-->
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170666#4170666
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170666
17 years, 11 months
[Tomcat, HTTPD, Servlets & JSP] - Issue with the Virtual Host
by Metal Jboss
Hi everyone, I hope I am in the right forum.
Well I have to make a virtual host, but I am not sure how to do it, I was looking to make a virtual Host, so I add the next code to the file $JbossHome/server/default/deploy/jbossweb-tomcat55.sar/server.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Host name="vhost" autoDeploy="false" deployOnstartup="false" deployXML="false"
Alias>rocky.webpage</Alias
<DefaultContext cookies="true" crossContext="true" override="true"/
</Host
So I created the Host vhost, as virtual with its Alias. and also I tried to change the $MyProjectRoot/web/WEB-INF/jboss-web.xml, and I added
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<!-- <security-domain flushOnSessionInvalidation="false"/>-->
<context-root>/JbossRocky</context-root>
<virtual-host>vhost</virtual-host>
</jboss-web>
I made that change, but my server just doesn't respond , I want to make that the Jboss Server answers with the url: http://rocky.webpage/JbossRocky instead of http://localhost:8080/JbossRocky , I looked for all parts and found out that method, but I am not sure if that's enough or what else do I need, and I want to make those changes in a Mac Server and a Windows Server (the last one I want to that answer the doman http://wap.mycompany.com If I ommited some signs of '<' or '>' it is because it was considering as a HTML in this text, but the name of the host is "vhost" and its alias is "rocky.webpage"
Thanks by the way
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170655#4170655
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170655
17 years, 11 months