cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS and IIS

mikeh
Star Contributor
Star Contributor
Ok first off, I admit it's a bit of a mad configuration to try, but thought I'd give it a go anyway until some kind of "built-in" web publishing becomes available (or I can get FTP to work! :winkSmiley Happy

I'm running Alfresco PR4 on WinXP Pro SP2 and IIS installed. I've got CIFS working through Explorer and all seems fine.

I created a Web Site in IIS and pointed it at \\servername_a\Alfresco, using my domain username in the "Connect As" settings. IIS Directory Security is set to Anonymous, using the standard IUSR_servername user (I've tried various options here, including basic and integrated authentication).

As far as the MMC snap-in is concerned, everything is working fine - I can see "Alfresco Tutorial", "Glossary" and my "Internet" folder, which contains a single "default.htm" file.

From a web browser, it's almost there… as browsing to http://localhost/ shows the three folders. But, trying to navigate into any of the folders throws a 404 error.

I'm guessing it's something to do with the way IIS accesses the filesystem, although I would have thought it would be quite standard when using a network share.

As I said at the beginning, it's a bit of a mad configuration, but would be interesting to know if you guys can get it working. (I'm trying to do the same thing with Tomcat just to see if that works, but I'm having to get up-to-speed with it first…)

Cheers,
Mike
6 REPLIES 6

mikeh
Star Contributor
Star Contributor
Well, I figured out how to configure Tomcat and…. it works!  😎

Added mikes.xml to tomcat/conf/Catalina/localhost:
<Context docBase="\\\\dev13_a\\Alfresco\\Internet" privileged="false"
         antiResourceLocking="false" antiJARLocking="false">
</Context>

Browse to localhost:8080/mikes/ and voila! Instant web deployment with all the document management joys of Alfresco.

IIS still won't play nice and it's probably not going to win any awards for speed, but all-in-all a productive Friday afternoon!

Mike.

gary_spencer
Champ in-the-making
Champ in-the-making
You could use FTP to access the files directly via the Alfresco FTP server, that should work ok for ftp:// URLs from IE and Windows Explorer (although you'll need the next preview release to fix problems with SmartFTP/FileZilla).

I'll have to check out why IIS has trouble with the CIFS mapping.

Cheers

Gary

dancri77
Champ in-the-making
Champ in-the-making
I tried the same publishing to IIS 6.0 scenario but wasn't able to reach as far as you did. In my case I got 500 Internal Server Error from a separate IE browser.

I have a space named \\project_a\Alfresco\Users\agssite\Published, visible via CIFS using user agssite.

I've setup a virtual folder on a IIS 6 foderl linked to the above CIFS path, using connect as agssite. In IIS 6 MMC console I can see the content of the CIFS "Published" folder but when I navigate to it through IE browser I get HTTP Error 500 - Internal server error.
——————————————————————–
Some logging info for scenario 1:

1) After I open the "Published" virtual folder from IIS MMC

19:08:02,422 DEBUG [alfresco.smb.protocol] [SMB] Winsock NetBIOS session request
received, caller=[MARS:WorkStation,Unique,]
19:08:02,453 DEBUG [alfresco.smb.protocol] [SMB] Waiting for Win32 NetBIOS sessi
on request (Winsock) …
19:08:02,453 DEBUG [alfresco.smb.protocol] Server session started
19:08:02,453 DEBUG [alfresco.smb.protocol] Negotiated SMB dialect - NT LM 0.12
19:08:02,562 DEBUG [alfresco.smb.protocol] Assigned protocol handler - org.alfre
sco.filesys.smb.server.NTProtocolHandler
19:08:02,578 DEBUG [alfresco.smb.protocol] NT Session setup from user=agssite, p
assword=8f236d9cc2fb84ff2df5418f4b33755f064e29065fa1368d, ANSIpwd=8f236d9cc2fb84
ff2df5418f4b33755f064e29065fa1368d, domain=ALFA, os=Windows Server 2003 3790 Ser
vice Pack 1, VC=0, maxBuf=61440, maxMpx=4
19:08:02,578 DEBUG [alfresco.smb.protocol]   MID=10056, UID=0, PID=65279
19:08:03,656 DEBUG [smb.protocol.auth] Authenticated user agssite sts=Allow via
MD4
19:08:03,672 DEBUG [alfresco.smb.protocol] User agssite logged on  (type Normal)

Seems OK until now

2. Now Browse the "Published" web site
a. no logging info from alfresco, it looks like IIS does not even reach to CIFS server

b. IE says
HTTP Error 500 - Internal server error.
Internet Information Services (IIS)

c. IIS log says:
2005-12-15 17:09:59 W3SVC1 127.0.0.1 GET /intra/published - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) 500 16 1326

——————————————————

Could someone figure it out what the problem is?

Many Thanks in advance!

dancri77
Champ in-the-making
Champ in-the-making
Success!

After a short gooogle research found out that 1326 error message in IIS log relates to authentication: net helpmsg 1326

So I created a user account on the IIS computer with same user name and password as Alfresco account. Added logon locally rights to that account and … IT'S WORKING.

brannonk
Champ in-the-making
Champ in-the-making
Hi everyone,

I am attempting to mount the cifs share of the AVM store for a particular user's sand box. (We use ASP for our site)

The user wants a live preview of items as he makes changes.
We use AD for user login and cifs authentication (ntlm)
I get the same error as mentioned before (error 500) when attempting to access the site.
In the IIS configuration I can see all the site files, I just cannot browse to them.
IIS is set to connect to the unc path of the store using the user's credentials.
anonymous access is set up using the default iUSR account. I tried creating a local user with the same info and putting that in the anonymous access settings with the same result.
Any help would be appreciated.
We are running a trial of 2.2E.
Thanks!

mikeh
Star Contributor
Star Contributor
Holy 2-and-a-half year bump, Batman!  Smiley Very Happy

The original posts were made before WCM even existed (and before I was an Alfresco employee!), so you might want to consider posting this configuration as a new topic in the WCM forum instead.

Having said that, we would strongly recommend setting up test server deployment environment that V2.2 newly supports, rather than trying to get IIS working across CIFS. It looks like IIS is making some pretty low-level CIFS calls that we may not be fully supporting, so this is going to be very tricky to debug.

Thanks,
Mike