Hi, just installed TeamSite but Preview not working, get "Bad Request...Your browser sent a request that this server could not understand.Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request." URL is: http://192.168.0.10/iw-mount/default/main/component-guide/WORKAREA/shared/New File Test.txt IF I insert port 81 (:81) into that URL it works: http://192.168.0.10:81/iw-mount/default/main/component-guide/WORKAREA/shared/New File Test.txt I assume I need a rewrite rule, but not sure where and what. (iw.cfg or iwwebd/rewrite.conf...). Thought the installer would handle this. Can someone refresh my memory as to what I need? Thanks BB
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
Provide some details, what OS and TS level ?
Apache should have been configured automatically but sometimes it doesn't happen
Find your httpd.conf (default on Linux is /etc/httpd/conf/httpd.conf and this should be at the end:
Alias /iw-mount/ /iwmnt/ < Directory "/iwmnt" > Options All Order allow,deny Allow from all < / Directory >
Make the XML correct obviously, I couldn't make ti look right on these forums
Hi Andy, it's CentOS 7.4, and this is actually a pre-release version of TeamSite16.4. I installed my apache 2.4 the 'old way', so is under /usr/local (I assume yum install will put it under /etc?).
The installer did add the following to httpd.conf: Alias /iw-mount/ /iwmnt/ < Directory "/iwmnt" > Options -Indexes Require all granted < /Directory >
...so I assumed I needed a rewrite rule in iw-webd/../rewrite.conf, something like: RewriteCond %{SERVER_PORT} !^81$ RewriteRule (.*) http://%{HTTP_HOST}:81%{REQUEST_URI} [R]
But that's not working, and I've not really done these before. Rgds BB
@Andy Knipp said: Provide some details, what OS and TS level ? Apache should have been configured automatically but sometimes it doesn't happen Find your httpd.conf (default on Linux is /etc/httpd/conf/httpd.conf and this should be at the end: Alias /iw-mount/ /iwmnt/ < Directory "/iwmnt" > Options All Order allow,deny Allow from all < / Directory >
@Andy Knipp said: Provide some details, what OS and TS level ? Apache should have been configured automatically but sometimes it doesn't happen Find your httpd.conf (default on Linux is /etc/httpd/conf/httpd.conf and this should be at the end:
No you don't need a rewrite rule, the iwproxy will take care of that. If the proxy is running correctly, it may be a bug.
As root, kill iwproxy, then run it from the command line with debug on and run your test.
/opt/Interwoven/TeamSite/bin/iwproxy -d
OK, did that, got: /opt/teamsite/iw-home/TeamSite/bin/: ./iwproxy -d [Using tickets for authentication] [Using newfangled blobs] setrlimit NOFILE cur: 16000 max: 16000) [iwproxy] iwserver locale: English_UnitedStates.US-ASCII@Binary [iwproxy] max_connections (default): 100 regex pattern set: ^/iw-mount/(.)/%24URL_PREFIX/(.) [iwproxy] using iwproxy_host from iw.cfg: localhost [iwproxy] listening at http://localhost:1080 [iwproxy] using customer web server at http://peter_teamsite16_3:81 [iwproxy] using servlet engine at http://localhost:8080/iw-cc [iwproxy] using iwwebd at http://peter_teamsite16_3:80 [external remap configuration] [name not set] key: 0 docroot: [no docroot specified]
[local remap configuration] / key: 0 docroot: [no docroot specified]
...I'm looking at "regex pattern set: ^/iw-mount/(.)/%24URL_PREFIX/(.)".... (Asterisks after the dots, must find out how to escape chars here).
......then try to preview file, get: UTF8 meta mode: 1[Transcoded path is: /iw-mount/default/main/component-guide/WORKAREA/shared/New File Test.txt] [Using pathtrack cookie: '/iw-mount/default/main/component-guide/WORKAREA/shared/favicon.ico']
[opening proxy connection to: peter_teamsite16_3:81]
[Request sent to origin server:] GET /iw-mount/default/main/component-guide/WORKAREA/shared/New%20File%20Test.txt HTTP/1.0 ... x-teamsite-preremap: /iw-mount/default/main/component-guide/WORKAREA/shared/New%20File%20Test.txt
[Response from origin server:] HTTP/1.1 400 Bad Request
Not seeing any reference to an attempt to redirect/rewrite in all that so far...
I do see this: [Pretranscoded path is: /iw-mount/default/main/component-guide/WORKAREA/shared/favicon.ico] [Using pathtrack cookie: '/iw-mount/default/main/component-guide/WORKAREA/shared/assets/img/phone_icon.png']
...that looks around the wrong way.
Fixed it, needed to change iw.cfg > [iwproxy]: customer_webserver_host=localhost ...from the actual server name. Not sure why that should make the difference, but it is working now. Thanks for the help, I learnt something.