Enabling user Sites folder

I would like to enable the "old style" http://my.server.org/~username configuration so users can share the contents of their Sites folder in OS X Mavericks server.
So far I have succeeded in getting it to work for Open Directory users by editing /Library/Server/Web/Config/apache2/httpd_server_app.conf and uncommenting these two lines:
Include /private/etc/apache2/extra/httpd-userdir.conf
and
LoadModule apple_userdir_module ${SERVER_INSTALL_PATH_PREFIX}/usr/libexec/apache2/mod_userdir_apple.so
Once I did that Local Network Users' (Open Directory Users) sites are accessible at http://my.server.org/~username but sites of Active Directory users are not.
Does anyone have any suggestions?

Using your text editor, create a new document. Type following text
<Directory "/Users/username/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
where you replace username by your username. Save it as a text document on your Desktop with name username.conf
Go to Finder, select Go menu, Go to folder item. Type /etc/apache2/users. A Finder window will open. Drag your username.conf file from the Desktop to this folder.
Authenticate when ask.
That's all.
You probably (not sure) will have to stop and start Web sharing (in Preferences) to access your personal site
http://servername_oraddress/~username/
Hope this helps.

Similar Messages

  • Migrate OD Users Sites folder only

    Hey all,
    Here at our school we have server that we wipe every year and re-add our users to clear out our graduating students, upgrade our machines, etc. The faculty have decided that for those students that are not graduating they want to setup a website in each of their user folders that the students can have for all four years of school. We have students now who have websites from last year and I want to move their folders over.
    Is there an easy way to move over all the Sites folder for each user to their new home folder without having to do it 1 by 1 for each user?
    Thanks in advance.

    Make sure that the files you need are being synchronized on a regular basis with the server. For Address Book, this means ~/Library/Application Support/Address Book.
    For iCal, it's: ~/Library/Application Support/iCal/
    Oftentimes (and by default in the Background sync tab), either in the Login and Logout sync or in the Background Sync tabs in the Mobility preferences for a user, ~/Library/ (and therefore the directories underneath it) are excluded from synchronization. Getting these off of the excluded list will make sure that they get included.
    Check other threads on portable/mobile home directories for things in the ~/Library folder than you may not want to have sync, like the ByHost preferences.

  • Apache 2 and ~User Site folder

    I recently installed Apache 2 following the helpful guide at http://www.phpmac.com/articles.php?view=244, at any rate while I have Apache running correctly, and can load http://127.0.0.1 (which displays the Apple default stuff) I cannot load http://127.0.0.1/~username. I have followed the guide, editing the httpd-userdir.conf, so I am not sure what to do. Having looked at an old Apache httpd.conf file I noticed that it had a
    <IfModule mod_userdir.c>
    UserDir Sites
    </IfModule>
    statement which is missing from the new httpd.conf, might that be the source of the problem? For example, there may be a module that I failed to install? If so a little direction would be a big help -- I don't know much about adding modules beyond "LoadModule". Any help is much appreciated!

    >Would you please take a look at my thread 9-22-06
    Not unless you post a link to it.
    In any case I know exactly what I'll say there.
    The first is to ask what the logs say. I'll go out on a limb and say there's an error message that looks something like:
     Permission denied: access to /Users/billjones/Sites/index.php failed because search permissions are missing on a component of the path.
    Am I right?
    If so the log message tells you what's wrong - Apache doesn't have permissions to search the directory tree to get to the document, so it doesn't know if the document exists, or whether it can serve it.
    You need to add world-executable privileges to every directory in the path to the file - that means /Users, /Users/billjones and /Users/billjones/Sites
    Since your other 'guest1' account works it's likely that /Users has the right permissions, so focus on the other directories.
    You'll need to chmod a+x /Users/billjones in order to set the execute bit on your home directory. Then repeat it with the /Users/billjones/Sites directory.

  • Hi ,How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
    or poerwshell . i have struggled for a week
    tchocr

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • About the Sites folder into Users accounts

    Hi,
    I can reach the Sites folder of users if I put a ~ after the domaine name like in : http://mydomain.com/~userx/
    How to do the same without having to put the ~ ?
    Thanks

    You need to configure apache specifically to do that.
    The whole point of the ~ is to gain access to user-specific sites. Without that character (or something similar), Apache can't automatically tell whether http://yourdomain.com/userx is userx's Sites directory, or a directory called '/userx' in the document root.
    So, if you want Apache to automatically find user-specific sites you'll need the tilde. If you don't, you'll need to tell apache how to find them (bearing in mind that the user's home directory might not be in /Users - it could be a network home directory, or in some other location.
    You might be able to craft something close using RewriteRules (at least to the point of catching missing directories and redirecting to /Users), but getting Apache to lookup a user via directory services to locate thier home directory is beyond RewriteRules as I know them.

  • How do I enable a site for Contribute users?

    I'm sorry if this is a very basic question, but I have been
    through the tutorials and much of the help in Contribute 3 and it
    all seems to be focused on what to do with an existing, Contribute
    enabled site. What I want to do is find out about what comes before
    that - how to enable a site for Contribute users. I can't find
    anything that explains how to do this. I've also looked through
    what I assume are the files used by the Trio Motor Company tutorial
    and I can't see anything that marks that out as being a Contribute
    enabled site. I'm not even sure whether or not Contribute needs
    special programs to be running on the server.
    I'm probably missing something.
    TIA

    Site/Manage Sites .. select your site and Edit.
    Go to the Advanced Site Definition Window. Next to last in
    the menu column
    is Contribute. Select that and check the check box.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Blim" <[email protected]> wrote in message
    news:e5ojj1$ho3$[email protected]..
    > I'm sorry if this is a very basic question, but I have
    been through the
    > tutorials and much of the help in Contribute 3 and it
    all seems to be
    > focused
    > on what to do with an existing, Contribute enabled site.
    What I want to do
    > is
    > find out about what comes before that - how to enable a
    site for
    > Contribute
    > users. I can't find anything that explains how to do
    this. I've also
    > looked
    > through what I assume are the files used by the Trio
    Motor Company
    > tutorial and
    > I can't see anything that marks that out as being a
    Contribute enabled
    > site.
    > I'm not even sure whether or not Contribute needs
    special programs to be
    > running on the server.
    >
    > I'm probably missing something.
    > TIA
    >

  • Unable to Enable User Profile Disks in RDP server 2012R2

    I am setting up a new Windows server that will act as an RDP server. The server has been built with Windows Server 2012R2. 
    I have the following roles and services working on the server: RD Web Access, RD Gateway, RD Licencing (with 30 user cal licences), the RD Connection broker, and the RD session host. 
    I have a SSL certificate configured and installed on the site, and both external and internal DNS are configured and working. 
    I have created and published an application collection and this is working. That is, when you go to https://remote.<servername>.org you are presented with a log in screen, users can log in with their domain accounts and then can connect to the published
    applications, this is working both on our internal network and from the general internet. 
    So all the roles on the server are working and the collection itself is also working. However, what I cannot do is set it up so that we can use user profile disks with that collection. When I go through the Session Collection Wizard and I get to "User
    Profile Disks" I can click on "Enable user profile disks" and then you can enter the options below. 
    I am entering the share location under location \\<servername>\<sharename> 
    I am using the default "store all user settings and data on the user profile disk" 
    Then I go to create the profile disks and I get the following error: 
    "Could not create the template VHD. Error Message: -2147024809
    This has happened multiple times, I have done the following: 
    - installed all windows updates and rebooted the server, same error 
    - checked the share permissions AND the folder permission for that share, for testing purposes I have set permissions on both the folder and the share to allow full control to "everyone" (I also tried it with only "domain users") but
    same error message. 
    - I have checked to see that no quotas are imposed on the disk where I am attempting to create the profile disks  - this was because this was the closest thing I could find on Technet was this post:
    https://social.technet.microsoft.com/Forums/windowsserver/ru-RU/aec30527-d742-42b9-950e-85c709c4cb45/vdi-problem-creating-user-profile-disks?forum=winserverhyperv
    And that was a quota issue that I am not having. 
    The UPD wizard says the following "the servers in the collection must have full control permission on the user profile disk share and the current user must be a member of the local Administrators group on that server" 
    Both of those things are true. 
    I have attempted to search for that specific error message (-2147024809) and have found nothing on Technet or any other site. 
    I am hoping someone here has some thoughts.  Thanks in advance. 

    I was looking at both the technet article for setting up UPD as well as this walk-through:
    http://thewolfblog.com/2014/02/24/user-profile-disks-for-rds-2012-2012-r2/
    The step after the creation of the disk in this walk-through is to look at who has permission on the .vhdx file, now obviously I am not at that step, but that is what led me down the trail of looking at user permissions, hence my attempts to set up shares
    where 'everyone' has full permissions on both the share and the folder.
    I have tried to set up multiple shares for the collection, I have tried on two different disks (volumes) on the RDP server itself, I also tried setting up a share on our fileserver (which has all kinds of shares working fine) and the same error occurred
    in all cases. 
    I also found this Technet article: 
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/d6469d31-6540-4075-a85f-a6e8f7c11e89/user-profile-disk-template-cannot-be-created-when-setting-up-session-collection?forum=winserverTS
    So that seems close to what I am looking for, but I have checked and the exact group policy that was causing the above linked issue is not defined in our group policies, but maybe there are other group policies that are causing the issue? 

  • Opitons +indexes for /Users/*/Sites

    I want to enable directory listings (i.e., Options +Indexes) for folders served from users's home folders.
    The following is a list of things I've tried, all result in a Error 403 to the browser, and an entry in /var/long/apache2/error_log similar to: "[Tue Feb 01 22:30:16 2011] [error] [client $ip] Directory index forbidden by Options directive: /Network/Servers/$server/Users/$user/$dir/
    - Selecting 'Folder Listing' in Server Admin under Web > Sites for the server.
    - Selecting 'Allow All Overrides' on the same page and adding "Options +Indexes" to a .htaccess file in the directory where a listing is desired.
    - Adding a directory section to /etc/apache2/httpd.conf and/or /etc/apache2/sites/0000any_80$server.conf similar to:
    <Directory "/Users/*/Sites">
    Options +Indexes
    AllowOverride All
    </Directory>
    autoindex_module and userdir_module are enabled and working as far as I can tell. Files from /Users/*/Sites are being served as desired. I have restarted apache after making changes both with `sudo apachectl graceful`, and via Server Admin.

    can you please explain how you fixed this... i would like directory listing available for my account.
    $ cat /etc/apache2/users/scarf.conf
    <Directory "/Users/scarf/Sites/">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    $

  • How to find out which user create folder

    how to find out which user create folder in shared drive?

    Hello,
    you have to enable Auditing in on the DCs OU and also on the top folder level where this should be monitored.
    http://technet.microsoft.com/en-us/library/cc784387(v=ws.10).aspx
    http://support.microsoft.com/kb/310399
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

  • Is the Sites folder included in Time Machine backups?

    I've learned the hard way that not everything is included in a Time Machine backup.  For example, if you have iPhoto open, a backup will not be made of the photos.  Now that I'm developing websites and storing them in the Sites folder, is it safe to assume that they are being backed up by Time Machine?
    Thanks!

    Are documents in iCloud Drive included in Time machine backups
    Yes, they are, and the current Yosemite version 10.10.2 makes it easy to find them in Time Machine. Just select iCloud Drive in the Finder, before you enter Time Machine to restore documents.  Time Machine backs up the local shadow copies of your iCloud Drive documents, that are stored in your hidden user library.

  • Enable User Directory

    I am setting up CPS. I am setting up users using the
    file-bases selection. I have a connection between publishing server
    and the website. When I go into the administrative tools in
    Contribute and go to Publishing Server, and click the button to
    Enable User Directory, I first receive a message that Local/Network
    protocol cannot be used with both Windows and Macintosh computers.
    Am I sure I want to enable it? I click Yes because we don't have
    any Macintosh computers. Then i have a window to login using my
    User Directory name and password. I have entered this the same way
    it is entered in the User Directory. I check the "Trust the server"
    box and click OK. I then receive a message that my user name and
    password are incorrect. I've changed the password in the User
    Directory in case it was typed wrong but still receive the same
    thing. Can anyone tell me what the problem is? I believe I've set
    everything up according to the documentation. Please help. We are
    needing to get this site out asap. Thanks.

    Not entirely sure, but I've had it stop like that when it
    tried to validate the FTP connection. We've had to add folks to our
    FTP server in order to make it work.

  • 403 Forbidden on Apache for a web page in my own encrypted Sites folder

    Greetings,
    I'm developing a php web site, putting files in my account's "Sites" folder.
    My whole account is encrypted (not by File Vault, but by moving it in an encrypted .dmg by ditto and niutil, instead) and I'd like the web site itself to be, too: for now I want it my eyes only. Everything I use (iApps, etc.) works fine, so I think I adjusted my encrypted home right.
    But, I can't view my own web pages in Safari: when I try any location such http://localhost/~myusername[/myfile] I get a 403 Forbidden error.
    File permissions seem right and Personal Web Sharing is on. Moreover, if I create a brand new user and move it (via ditto and niutil) in the same encrypted .dmg, it suffers the same fate.
    Any other non-encrypted account's web page, e.g. http://localhost/~otherusername is reachable from my encrypted account.
    I wonder if all that's about Apache configuration, which I'm not skilled enough to fix.
    Thanks to anyone caring to help.

    Hi Begli, and a warm welcome to the forums!
    See if any of this helps...
    http://www.informit.com/library/content.aspx?b=MacOS_XUnleashed&seqNum=211

  • .htaccess file in ~user/Sites directory

    Hello all,
    I'm having trouble getting a .htaccess file to work in my user directory (~/rwilson4/Sites/private, to be specific). They've always worked just fine in any subfolder of /Library/Webserver/Documents/, but they're not being recognized in my personal Sites folder. Here is my rwilson4.conf file:
    ]<Directory "/Users/rwilson4/Sites/">
    ] Options Indexes MultiViews
    ] AllowOverride All
    ] Order allow,deny
    ] Allow from all
    ]</Directory>
    ]# AccessFileName .htaccess
    I put that last line in because I wasn't sure if it was needed. I've tried it with and without the comment (and of course stopping and restarting the server with httpd graceful)
    I copied the .htaccess directly from one that currently works, but if anyone thinks that might be the problem, I could post that too.
    If anyone has any ideas, I'd be grateful for the feedback.
    Sincerely,
    Robert

    The user sites in Apache are configured much differently than the main site by default. One of the differences is authorization. The user sites section of httpd.conf will need changing to make it more like the main server section.
    Roger

  • How to properly get folders, files into Dreamweaver Defined Site Folder from desktop

    I, obviously am a new Dreamweaver user, and I need to know
    the proper way of going about getting a folder, files, ect. from my
    hard drive into my Dreamweaver defined site folder. I understand
    how to insert an image from my hard drive into DW and it shows up
    in my site folder in the Files Panel. More specifically, using
    Lightbox2, after downloading Lightbox and placing those elements in
    a new folder on my hard drive, what is the proper way to get that
    folder into my site folder?
    Also, how can I properly add images to an images folder in my
    site folder in DW for possible later use, without inserting them on
    the page. I know by inserting them on the page from a folder on my
    hard drive, Dreamweaver prompts me for DW to recognize them. I
    would like to know how I can get them in there and DW to recognize
    them without actually inserting them on my page.
    And can and how can I move files, images, pages from one site
    to another? or should I? Thanks, if anyone can help me with these
    file moving questions.

    To restate courtney's explanation, *anything* that you paste
    into the site's
    local root folder will appear in DW's File panel, and will be
    considered by
    DW to be a part of the site.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "courtney (n h c)" <[email protected]>
    wrote in message
    news:[email protected]...
    > assuming you're on Windows, if you want to move files
    from one place on
    > your hard drive into your site folder, just use Windows
    Explorer.
    >
    > but keep in mind that this would not be the ideal way to
    move files within
    > the site folder from one place another. for example, say
    you have a page
    > and you want to move it into a folder, you should do
    that in Dreamweaver
    > because it will update the links for you in any files
    that link to the
    > page you're moving.
    >
    > Rock Artist wrote:
    >> I, obviously am a new Dreamweaver user, and I need
    to know the proper way
    >> of going about getting a folder, files, ect. from my
    hard drive into my
    >> Dreamweaver defined site folder. I understand how to
    insert an image from
    >> my hard drive into DW and it shows up in my site
    folder in the Files
    >> Panel. More specifically, using Lightbox2, after
    downloading Lightbox and
    >> placing those elements in a new folder on my hard
    drive, what is the
    >> proper way to get that folder into my site folder?
    Also, how can I
    >> properly add images to an images folder in my site
    folder in DW for
    >> possible later use, without inserting them on the
    page. I know by
    >> inserting them on the page from a folder on my hard
    drive, Dreamweaver
    >> prompts me for DW to recognize them. I would like to
    know how I can get
    >> them in there and DW to recognize them without
    actually inserting them on
    >> my page.
    >>
    >> And can and how can I move files, images, pages from
    one site to
    >> another? or should I? Thanks, if anyone can help me
    with these file
    >> moving questions.
    >>

Maybe you are looking for