Problem with IIS and Confluence

Linus Kvarnhammar January 18, 2012

I'm new to Confluence, I have just installed a new production edition of Confluence that works with Active Directory integration. Now I want to get a seemless login experience using IIS and Windows Authentication. I followed this tutorial:

http://confluence.atlassian.com/display/SPCON011/Access+Confluence+using+Integrated+Windows+Authentication+via+IIS

Except for a few errors in the tutorial it was straightforward. But now when pointing IE to http://localhost/ on the local server I get a Tomcat 404 error.

Can someone give me some pointers as to where I should look for errors. I have looked in the logfiles and event log for errors but haven't found anything that makes sense.

OS: Windows Server 2008 R2.

Thanks

2 answers

1 accepted

1 vote
Answer accepted
Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2012
Hi Linus, when you followed the instructions did you change your context path in step 3.1? If you did does http://localhost/confluence display your Confluence site?
Linus Kvarnhammar January 18, 2012

No I skipped that step because I have only one site which is Default Web Site. The server is completely new and and is dedicated only to Confluence. So I expect Confluence to show up at http://localhost/

Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2012

Does the troubleshooting section of http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html help? If you haven't changed the context that Confluence is served from it's normally a typo in isapi_redirect.properties or in the name of the "jakarta" virtual directory.

Hope that helps?

Andrew.

Linus Kvarnhammar January 18, 2012

I look at the link and it made me realize that my tomcat_iis_connector folder needed looser permissions. That done and the isapi_redirect.log now contains something. I enabled debug logging and I can read in the log file that the request is received by the isapi filter and forwarded to port 8009, where the Confluence AJP connector is answering. But it returns a 404 and that is what I see in the browser. Any ideas on how to move on from here?

Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2012

What have you got in your uriworkermap.properties file? It should be something like:

/*=worker1

Also, can you still access Confluence directly at http://localhost:8090 ?

Linus Kvarnhammar January 18, 2012

The uriworkermap.properties has exactly that line. Also I believe that it said in the debug log of the isapi filter that the URI matched and it was passed on to port 8009 - which returned 404. So the URI matching should be OK. I'm not misunderstanding something.

I cannot access confluence at all, the standard connector in the server.xml file on port 8090 I removed (like it said in the documentation). And now it's on 8009 instead but a different typ of connector which I can't use via IE, don't know if I'm suppose to or not.

Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2012

Sorry, I hadn't picked up that those instructions said to remove the 8090 connector, not sure why the instructions say to remove it as you can have multiple connectors and having one that you can access athttp://localhost:8090 directly is helpful for checking that Confluence is still accessible.

If it's passing the request to 8009, but returning a 404 then it sounds like there's possibly a typo somewhere with the "jakarta" directory, or the directory that jakarta points to that contains the isapi_redirect.dll file.

Do any of these documents help, they differ slightly from the original documentation you referenced:

http://confluence.atlassian.com/display/DOC/Setting+up+Confluence+with+IIS

http://confluence.atlassian.com/display/DOC/Connecting+Confluence+with+IIS+7

http://confluence.atlassian.com/display/JIRA/Configuring+IIS+with+Tomcat

Andrew.

Linus Kvarnhammar January 19, 2012

I found the problem! Apparently I hadn't read the confluence stdout log. When I did so it became apparent that my Swedish character in an XML comment in seraph-config.xml caused an error.

So it all seems to work fine now. I very much appreciate you taking the time. It's always helpful with someone pointing in different directions to help solve problems.

Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2012

Cool, glad you got it working.

0 votes
Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2012

Sorry, I hadn't picked up that those instructions said to remove the 8090 connector, not sure why the instructions say to remove it as you can have multiple connectors and having one that you can access at http://localhost:8090 directly is helpful for checking that Confluence is still accessible.

If it's passing the request to 8009, but returning a 404 then it sounds like there's possibly a typo somewhere with the "jakarta" directory, or the directory that jakarta points to that contains the isapi_redirect.dll file.

Do any of these documents help, they differ slightly from the original documentation you referenced:

http://confluence.atlassian.com/display/DOC/Setting+up+Confluence+with+IIS

http://confluence.atlassian.com/display/DOC/Connecting+Confluence+with+IIS+7

http://confluence.atlassian.com/display/JIRA/Configuring+IIS+with+Tomcat

Andrew.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events