.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

Similar Messages

  • How to save file in users temp directory in java

    How to save file in users temp directory as "<Drive Name>:\Documents and Settings\<User Name\Local Settings\Temp".

    Shouldn't the System property "user.home" reference to that directory on windows? So if you call System.getProperty("user.home");, I think it should return that path at least up to <User Name>. I never really tried it on Windows though.

  • 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>
    $

  • AES-256 user home directory sparse image bundle in Lion?

    Snow Leopard and previous had file vault to protect users' home directories as, I believe, AES-128-encrypted sparse image bundles. As I understand it now, under Lion, the options are to enable AES-128 whole disk encryption, or, if upgrading an existing snow leopard machine with a legacy file vault user account, to maintain that legacy file vault user home directory. However, under this second approach, additional users' home directories cannot be individually "file-vaulted" and instead, would require that legacy file vault  be decrytped and then the entire disk be encrypted.
    I am thinking that it would be advantageous from a security standpoint if an individual user home directory could remain encrypted, if that user were not actively logged in. Then, all contents would be inaccessible to other users, including administratively privileged users, and also that user's home directory would remain encrypted when the computer was turned on and booted up because as I understand it, file vault 2's real strength lies in protecting "data at rest" versus "data on a powered up and mounted file vault 2 volume".
    To that end, I am wondering, regardless of whether file vault 2 is enabled or not, whether an existing user home directory and all of its contents be converted to an AES-256-encrypted sparse image bundle, using Disk Utility, and exist at the /Users directory space, mounting and decrypting "on the fly" from the login window at user login just like how a legacy file vault home directory is treated under snow leopard, independently of whether file vault 2 was enabled on the whole disk or not. This would also permit later addition/conversion of another "file vaulted" user account whether fle vault 2 were enabled or not.
    To recap, an AES-256-encrypted sparse image bundle that would mount upon user login just like a legacy file vault user home directory does. Does anyone know if something like that is doable, and has that road already been travelled successfully? If so, I'd love to read a step-by-step, play-by-play, set of instructions on how to do just that.

    I think I got a solution worked out.  I don't mind if things get installed in /opt as long as pacman tracks it, and I found ruby-enterprise-rmagick in the AUR as an orphan.  I adopted it, updated it, installed it, and it's working great with my code.

  • How  to read all files  under a folder directory in FTP site

    Hi Experts,
    I use this SQL to read data from a file in FTP site. utl_file.fopen('ORALOAD', file_name,'r');
    But this need to fixed file name in a directory. However, client generate output file with auto finename.
    SO do we have any way to read all file by utl_file.fopen('ORALOAD', file_name,'r');
    We need to read all file info. because client claim for security issue and does not to overwirte output file name,
    we must find a way to read all file in output directory.
    Thanks for help!!!
    Jim

    If you use Chris Poole's XUTL_FTL package, I believe that contains functions that allows you to query the directory contents.
    http://www.chrispoole.co.uk/apps/xutlftp.htm
    Edited by: BluShadow on Jan 13, 2009 1:54 PM
    misread the original post

  • How to get rid of Index of file:///C:/Users/lago/AppData/Roaming/SpecialSavings/ Up to higher level directory Name Size Last Modified File:SpecialSavings_2.0

    I am unable to uninstall this high risk addon shown below in Firefox Ad Data
    Index of file:///C:/Users/lago/AppData/Roaming/SpecialSavings/
    Up to higher level directory
    Name Size Last Modified
    File:SpecialSavings_2.0.0.crx 25 KB 19-Aug-12 6:03:42 PM
    Anyone know how to get rid of it please?

    I am unable to uninstall this high risk addon shown below in Firefox Ad Data
    Index of file:///C:/Users/lago/AppData/Roaming/SpecialSavings/
    Up to higher level directory
    Name Size Last Modified
    File:SpecialSavings_2.0.0.crx 25 KB 19-Aug-12 6:03:42 PM
    Anyone know how to get rid of it please?

  • Error when opening a new file: "Could not find the user documents directory"

    Why can't I create a new file and I get this error everytime: "Could not find the user documents directory"?

    Hi Team,
    Please check this forum thread with similar issue.
    Create New gives an error "Could not find the user document directory"
    Regards,
    Devendra

  • Creating flat files (.csv) in user defined directory using PL/SQL

    I need to extract data into a flat file (.csv) and store the flat file directly into a directory on local drive as specified by the user at runtime. I do not intend to use the UTL_FILE package. Is there a way put to do this?
    Thanks
    Amit.

    Hi Amit,
    Your users have any shared drive which every one can access? If so follow these steps.
    1> Allow users to select their destination location to an APEX item.
    2> On submit, save the user IP, destination location and user name to a database table.
    3> On submit, using JS, open XLS file template (+kept this template file in shared location+) The template should contain all the macros that will do the needful. I mean they should connect to database and should fill it with data and saving it to user specified location etc.
    Hope it helps.
    Cheers,
    Hari

  • Sending of message failed. Unable to open the temporary file C:\Users\Admin\AppData\Local\Temp\nsemail.eml. Check your 'Temporary Directory' setting.

    after opening an email I knew to be a phishing attempt, I forwarded it to my bank's spam/phishing email address. I did NOT click any link in the suspicious email. only forwarded it.
    now when I try to send an email I get the following error message:
    Sending of message failed.
    Unable to open the temporary file C:\Users\Admin\AppData\Local\Temp\nsemail.eml. Check your 'Temporary Directory' setting.
    I can't find a temp directory. where is this and how do I fix it?

    Try to start *Windows* in safe mode with networking enabled.
    - Win8 http://windows.microsoft.com/en-US/windows-8/windows-startup-settings-including-safe-mode
    - Win7 http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode
    - XP http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx
    Still in Windows safe mode, start Thunderbird in safe mode.
    - https://support.mozilla.org/en-US/kb/safe-mode
    Does the problem go away?

  • How can automatic save file from apex to user local directory?

    how can save pdf file from apex to user local directory on button click?

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "940509".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    how can save pdf file from apex to user local directory on button click?As Tony points out the ability to do so would represent a major security breach. The normal approach is to present the user with a download link that when clicked prompts them with a Save dialog in which they can select a location for the downloaded file.
    What is the source of the PDF file?

  • I have completed an online form and am trying to send it to the organization. When I say submit, it tries to connect to File:///C/users/Gail/Downloads and not to the organisations site

    I have completed an online form and am trying to send it to the organization. When I say submit, it tries to connect to File:///C/users/Gail/Downloads and not to the organisations site

    There's nothing you can do about it. Report the problem to the organization. They need to fix it and send you a new version of the PDF.

  • Including htaccess File

    Hello.
    Is there an easy way to include a .htaccess file so that only authorized users can have access to a page created with iWeb '08 (on a non-.Mac server)? I know I can do this after the site is uploaded to the server, by manually going into the uploaded site and dropping in the file in the appropriate directory, but I would like to do this automatically.
    On another note, is there a way to include a file that starts with a . (i.e., a hidden file) in iWeb '08? Even when I can "see" hidden files in Finder I cannot "see" them via iWeb '08.
    Thanks for any thoughts,
    Ken

    No, you must manually add the .htaccess file to your server space, and there is no way to somehow include such files in iWeb.

  • Urgent!doubt in upload the file to a particular directory.

    Hi
    Actually i'm developing a site using JSP.
    Main concept of the project is the user should be
    able to access his files or dabases from anywhere
    in the world thru internet via intranet.
    i've placed upload option in my site.
    each user should b given a separate directory.
    can anyone tell me how to make the user to store
    the file in a particular directory(the one alloted to him).
    And to view the file, if the user enters the file name
    it should open the file in the particular format.
    i need the coding since i'm new to jsp.
    can anyone help me or refer any site tht can solve
    my problem?
    thanx in advance.

    I'd just answered a similar case. I believe this is what you are looking for;
    <%@ page contentType="MIME-Type; Charset=Character-Set" %>
    Read up on MIME-Type and Character-Set for info.
    Here some exmaple;
    By default:
    <%@ page contentType="text.html; Charset=ISO-8859-1" %>
    Show an MS Excel file;
    <%@ page contentType="application/vnd.ms-excel" %>
    or
    <%
    String mimeType = "application/vnd.ms-excel"
    response.seContentType(mimeType);
    %>
    Cheers

  • 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.

  • List files stored in a Directory Object

    Hi,
    I looked on Google, on Oracle DB docs and here to find a convenient way to list files stored in a DIRECTORY for batch loading in a table with PL/SQL. But no luck, UTL_FILE doesn't seem to have a method for directory listing. I saw examples with some workaround like putting files list in a text file prior to loading. The directory is feeded by other process and network services, so I don't know the filelist that I need to import and, then delete. I dont have access to the server console and it's impossible for me to dump a kind of «dir» result into a text file. I saw other examples using Java, but it looks like I don't have access to Server Side Java too.
    Is there a simple way to do that in PL/SQL only?
    If not, I'll ask to the DBA the necessary rights to compile/run java on the server side...
    The DB target versions for this requirement are 10g and 11g (mainly) on Windows environment.
    Thanks
    Bruno

    brlav35 wrote:
    The XUTL_FINDFILES seems to be the more convenient way. If that works for you, I certainly have no objection. In a lot of environments, though, that package would be problematic.
    1) It must be installed in the SYS schema. That's generally frowned upon and lots of sites would never allow user code to go into the SYS schema. Chris is a bright guy, so I'm sure the risk of it causing harm is minimal (most likely during an install or upgrade), and it will almost certainly never cause you harm, but that would be a political show-stopper at a lot of places.
    2) The package body is wrapped (if there is a version with the package body in clear text, this point is moot). Again, Chris is a well-respected guy, so I have every confidence that the code is not malicious, but asking a DBA to install a wrapped package you downloaded from the internet into the SYS schema on a production database should generate a crud-load of red flags. This is almost certainly just a theoretical danger, but DBAs and audit compliance regulations care a great deal about theoretical dangers. If someone hacked the web site and uploaded their own wrapped bit of code that had a back door, for example, it would be very hard to catch.
    3) Under the covers, the package is querying one of the undocumented X$ views. Oracle is free to change those views over time, which would potentially cause the package to stop working or stop working correctly in some way. If you're developing code for a system that may be around for a number of years, that becomes a concern. It's unlikely that Oracle will change the particular X$ view that is being referenced here over the lifetime of your code base, but it's more than a trivial concern.
    4) The package is determining what directories a user has access to, that's not Oracle enforcing the restriction. Probably not too big a deal, but it is probably safer from a regulatory compliance standpoint to be able to rely on Oracle the database enforcing privileges rather than relying on a delivered package to enforce those privileges. It's the difference between telling Oracle via specific grants which directories the JVM can access vs. writing your own wrapper that enforces those restrictions. In the end, the restrictions are enforced, but in one case you're relying on the developers of the Oracle database and in the other you're relying on external developers.
    Just to re-iterate-- Chris is a brilliant guy, I don't mean this in any way to impugn him or his code. I am totally confident that his code works, that it works well, and that it will continue to work going forward. My concerns are purely on the political/ regulatory side of things, not on the technical side of things. Technically, I am confident that the code is top-notch.
    Justin
    Edited by: Justin Cave on Sep 9, 2009 12:38 PM
    I wrote this before seeing the last few bits of the exchange where you and Chris already talked about the first point.

Maybe you are looking for