Apache conf file not working

I've seen instructions all over the internet about rewriting a .conf file to get Apache to see your user "Sites" folder in Mountain Lion. Mine refuses to work. The server still works at localhost, but localhost/~user will not, I get "Safari cannot connect to server localhost."
I'm really the only user that uses it, is there any problem with just changing to document root in the httpd.conf file to /Users/user/Sites?
Or, any ideas about the user.conf file? Permissions are correct, file is correct, apache restarted.

Interesting. I ran apachectl configtest, and it found a syntax error in my user.conf file, which I thought I deleted. All this time I've been working in /etc/apache2/users, as the online tutorials specify. The other .conf file, brought to my attention by the configtest, is in /private/etc/apache2/users.
The error: a space between allow,deny.
Fixed the error... all is well. Thanks for the configtest tip... I never knew about that one.

Similar Messages

  • Apache Plugin is not working with Cluster Entry in httpd.conf

    Hi Guys,
    We have a very particular issue that is happening here in our production environments. Before explaining the issue to you, I will just give a brief of our architecture.
    We are using Weblogic Portal Platform SP4.
    Our current Production Domain Consists of 1 Admin Server and 2 Managed Servers. The managed servers are in a cluster.
    We have two Linux boxes on which the weblogic servers are running. These two machines have IPs: x.x.x.58 and x.x.x.59. Now, the Admin Server and managed Server 1 are started on the machine x.x.x.58 and managed server 2 is started on the machine x.x.x.59. Both the managedServers listen on port 8007.
    This entire setup mentioned in the above paragraph is at a location A (lets say).
    Now, the requests are proxied to the managed server cluster using BEA's Apache plugin residing on Apache. Apache is running on two Linux boxes that are present at a location B.
    Location B is connected to Location A by a dedicated WAN Link.
    Now, before the two Apache servers there is a physical Load Balancer that balances the requests between the two Apache boxes.
    This means that whenever there is a request from the Internet to the weblogic cluster, the load balancer first sends it to either of the Apache servers and then the BEA Apache plugin on that Apache forwards the request via the 2 mbps WAN link to the weblogic cluster.
    Now following is the description of the issue we are facing. We donot know whether the issue is with the plugin or with weblogic server.
    In order that the plugin load balances the requests between the servers in the cluster and for failover, the following entry was put in httpd.conf on both the Apache Servers.
    WebLogicCluster y.y.y.11:8007,y.y.y.13:8007
    Note: Because of the WAN link there is natting used. This implies y.y.y.11 is natted to x.x.x.58 and y.y.y.13 is natted to x.x.x.59.
    Here in lies the issue. When we use this plugin entry the following issue occurs.
    1.     First we go to the home page and login.
    2.     The user is then redirected to a Portal Desktop fitting those credentials.
    3.     Now on this Portal Desktop, invariably whenever we click any of the desktop's links, an HTTP 403 is thrown. This error is thrown because on the desktop there are entitlements so that it cannot be accessed without a user logging in with credentials. But this error indicates that the server is losing the session and entitlement details.
    Why does this happen?
    As a result, we cannot use that plugin entry. The current entry we have is
    WebLogicHost y.y.y.11
    WebLogicPort 8007
    As you can see, here we are only redirecting to one managed server. This entry is not what we want, obviously because if that server fails, the plugin wont know which other server to pass the request on to. Also in this case there is no load balancing.
    Our issues our,
    1. How to resolve this plugin entry issue. How can we use the cluster entry without encountering this HTTP 403 Error?
    3. Consider the following sequence of steps.
    - Request for the home page is served by Apache Server 1
    - User logins in, the login request is sent by the Load Balancer to Apache Server 1 and plugin on Apache Server 1 sends it to the cluster via WAN l ink. Then the internal mechanism works with creating the session id and primary server and secondary server and logs the user in and sends the response via Apache Server 1.
    - Now, the user clicks a link on the desktop. The request now goes to the load balancer and it sends it to Apache Server 2.
    The question is now does the plugin on Apache server 2 correctly understand and send the request to the primary server of that session.
    Pls help me as to giving me some direction in resolving this issue

    From your Xorg.0.log:
    (II) fglrx(0): DRIScreenInit done
    (II) fglrx(0): Kernel Module Version Information:
    (II) fglrx(0): Name: fglrx
    (II) fglrx(0): Version: 8.49.7
    (II) fglrx(0): Date: May 12 2008
    (II) fglrx(0): Desc: ATI FireGL DRM kernel module
    (WW) fglrx(0): Kernel Module version does *not* match driver.
    (EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work
    You have to quit X, then rmmod and modprobe the kernel module - you're still using the old one.  (a reboot would technically fix it too)
    # rmmod fglrx
    # modprobe fglrx
    # dmesg | tail
    The dmesg output should say you've successfully loaded the 8.501 driver.

  • Set systemwide variable with /etc/launchd.conf does not work in 10.10

    Hi,
    before i upgraded my system, i set in file /etc/launchd.conf some variables. I need this for the Shell, Eclipse and some other tools.
    user@osx10-10:~$ cat /etc/launchd.conf
    setenv M2_HOME /opt/maven
    setenv MAVEN_OPTS "-Xmx2048m -Dmaven.surefire.debug=-Xmx2048m"
    user@osx10-10:~$
    With Mavericks there was no problem, since Yosemite no Variables are set.
    Also when i try to set it manually with launchctl setting xxxxx xxxx, no variable is set.
    Does anyone has a workaround for me?
    Regards
    Joerg

    Alex It should work . by the way your PATH variable should be placed in /etc/paths like this :
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /usr/local/bin
    /Users/alex/Dev/apache-ant-1.9.2/bin
    Note after each line there is a return key
    As for environment variables open your ~/.bash_profile and place the.
    export ANT_HOME = /Users/alex/Dev/apache-ant-1.9.2
    launchctl setenv ANT_HOME $ANT_HOME
    export ANT_OPTS = -Xmx512M
    launchctl setenv ANT_OPTS $ANT_OPTS
    make sure you save and restart all applications that need to read environment variables. I faced the same problem with intelliJ accessing M2_HOME
    As a side note : consulting the man pages of launchctl(1)
    DEPRECATED AND REMOVED FUNCTIONALITY
         launchctl no longer has an interactive mode, nor does it accept commands from stdin. The
         /etc/launchd.conf file is no longer consulted for subcommands to run during early boot time; this func-
         tionality was removed for security considerations. While it was documented that $HOME/.launchd.conf
         would be consulted prior to setting up a user's session, this functionality was never implemented.
         launchd no longer uses Unix domain sockets for communication, so the LAUNCHD_SOCKET environment vari-
         able is no longer relevant and is not set.
         launchd no longer loads configuration files from the network

  • Apach1 .1.3.22+ mod_ssl /Weblogic 5.1  Browser to Apache SSL does not work

    We are using Weblogic 5.1 and apache 1.3.22+mod_ssl. HTTPS requests to the apache
    server for jsp do not work. However if
    a HTTP request for the same jsp is made, it works.
    SSL requests only work if the ServerName directive for HTTP
    server and the 443 Virtual Server are commented out in httpd.conf. Is this right?

    Hi.
    Firstly, this is not a supported configuration. The latest version of apache we
    certify is 1.3.19. See the following link for supported platforms:
    http://edocs.bea.com/wls/platforms/index.html#apach.
    Without seeing your httpd.conf file this should work. You probably already know this,
    but with WLS 5.1 https between the server and the plugin is not supported, so apache
    needs to translate all http/https requests to http for WLS.
    I recommend you try posting this question to the plugin newsgroup -
    weblogic.developer.interest.plugin.
    Thanks,
    Michael
    shakeel rao wrote:
    We are using Weblogic 5.1 and apache 1.3.22+mod_ssl. HTTPS requests to the apache
    server for jsp do not work. However if
    a HTTP request for the same jsp is made, it works.
    SSL requests only work if the ServerName directive for HTTP
    server and the 443 Virtual Server are commented out in httpd.conf. Is this right?--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Apache URL rewriting not working while "AllowOverride All"

    Hello,
    I have a small website hosted at my ISP. The sources are in Subversion and I wanted to use my personal Sites folder as a testbed. Edited /private/etc/apache2/users/ringods.conf to
    <Directory "/Users/ringods/Sites/">
    Options FollowSymLinks Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    I stopped and started Web Sharing again, but accessing http://localhost/~ringods/ still gives me a 404 Not Found error.
    Here is the .htaccess file that works at my ISP but not on my local machine:
    RewriteEngine on
    RewriteRule ^([^/.]+).html$ cgi-bin/get.py?item=$1
    RewriteRule ^$ index.html
    The files in my Sites folder are world-readable, and cgi-bin/get.py is executable as well.
    Anyone an idea?
    Ringo

    Yes, these are the same parts I put in place at my ISP. Can you point me to the other places that need activation for cgi-bin to work?
    Tnx,
    Ringo

  • /etc/modprobe.d/*.conf does not work

    I want to pass an option to a kernel mod on bootup. Specifically I want to alter the polling rate of the USB mouse to 500hz, by passing the options usbhid mousepoll=2 to usbhid mod.
    I added a new file to /etc/modprobe.d/ called usbhid.conf with the following contents:
    options usbhid mousepoll=2
    And by executing at runtime:
    sudo modprobe -r usbhid && sudo modprobe usbhid
    Then the mouse correctly runs at 500hz.
    So the conf file works if I execute it manually, but it doesn't get executed on bootup even though I have modconf on the HOOKS= in /etc/mkinitcpio.conf.
    Anyone knows what's wrong and why this doesnt work, or how I can debug it to find it out by myself?
    Last edited by Nektarios (2014-02-13 12:25:20)

    Yes it is.
    lsinitcpio -l /boot/initramfs-linux.img | grep modprobe
    ./usr/bin/modprobe
    ./usr/lib/modprobe.d
    ./usr/lib/modprobe.d/usb-load-ehci-first.conf
    ./etc/modprobe.d
    ./etc/modprobe.d/vmware-fuse.conf
    ./etc/modprobe.d/uvesafb.conf
    ./etc/modprobe.d/modprobe.conf
    Maybe I'm missing something here or it's a copy paste error but you said it's called usbhid.conf, that's not in this list.
    See: https://wiki.archlinux.org/index.php/mk … activation to rebuild your image.

  • How can I stop Lion from overwriting my apache conf files

    I am at the point of abandoning OS X forever and returning to loading NetBSD on macs.  I have never been so angry at a piece of Apple software. 
    On reboot, the server completely wiped out my apache configuration and rebuilt it.  Thankfully I had backups.
    How I can prevent Lion from interfering with my apache setup?  I will NEVER use that crappy admin tool again.  Webmin is FAR superior to it if I need a GUI tool.  I can live in the shell very happily.  I don't want to have to install a new webserver from source if I can avoid it. I just want to stop Lion from destroying my conf files.
    How do I wrest control from this monster?

    All we did was not modify httpd.conf other than adding an include at the end. If you put your content in other files, it doesn't seem to mess with them.

  • Application files not working...please help.

    I have an imac g3 400MHz when i start it up it goes through its normal starting phases but without any error messages and when the color screen pops up , it freezes so the only way i can start the computer is with extensions off. Once their any application file i try to open does not work but i do get messages that read for example:"The application "Apple DVD Player" could not be opened because "ControlStripLib" could not be found". Other messages read similiarly. Can you offer any suggestions or do you require further information about my problem?
    Thanks.
    Rob Arrona
    imac g3 400mhz   Mac OS 9.0.x  

    Open the Servers folder inside the System Folder and throw away anything that you don't recognize, and restart your computer normally. If the issue persists, open the Extensions Manager control panel, turn off half of your extensions, and restart the machine. Repeat the process of turning off half of the remaining extensions and restarting until you've narrowed down the extension causing your issue.
    The messages about items not being found are due to the extensions not being loaded.
    (11587)

  • Edge.oam animation file not working in Muse

    Anybody tell me what I'm doing wrong?
    I've created an edge animation, published an .oam file and placed it on a Muse wepage (no prob).
    Preview in Muse works beautifully.
    Preview in browser from Muse works beautifully.
    Export Muse to HTML and Edge animation not displaying – looked at the code, shows an iframe with link to edge html, but just not working.
    ...help please

    Someone please help me with this... I dont understand where the src path should point to when updated? Can you give an example path. I am not using edge animate but instead HYPE 3 which is relatively the same thing, exports html animations as an OAM or html file. When I use the OAM in muse it previews fine in browser and in Muse. But when I publish it shows a blank box. I looked at the code and see the iframe pointing to assets/example/example.html.
    I've tried exporting the Muse file as HTML after I've placed the OAM widget in Muse.. Then I navigate to the assets file and open the HTML file and try and locate the iframe code line but it does NOT exist. But if i Publish the site with Muse and OAM widget and use the developers tools I can see the iframe. After that I've tried going through filezilla to the assets folder and opening the HTML file but still NO iframe code line exists. I only find src for .js code.
    PLEASE HELP... would really like to integrate these animations into my projects.
    Thanks

  • Sharepoint 2013, event receiver to rename files not working

    I coded an event receiver (ItemAdding) that renames for example a .txt file to a .text file (it does not matter the extensions, it is just an example). In my code what I do is to an SPFile.MoveTo operation. It works fine in SP2010 but when I execute
    the same code in SP 2013, when the operation is done using IE I get the text "Sorry, something went wrong" and then "File Not Found".
    In the logs this is what I see:
    12/23/2013 15:48:49.16  w3wp.exe (0x17B0)                        0x0AC8 SharePoint Foundation        
     General                        ai1wu Medium   System.IO.FileNotFoundException: The system cannot find the file specified.
    (Exception from HRESULT: 0x80070002), StackTrace:    at Microsoft.SharePoint.SPWeb.GetFileOrFolderProperties(String strUrl, ListDocsFlags listDocsFlags, Boolean throwException, SPBasePermissions& permMask)     at Microsoft.SharePoint.SPFile.PropertiesCore(Boolean
    throwException)     at Microsoft.SharePoint.SPFile.get_Length()     at Microsoft.Office.RecordsManagement.PolicyFeatures.ApplicationPages.UploadPage.OnSubmit(Object o, EventArgs e)     at Microsoft.Office.RecordsManagement.PolicyFeatures.ApplicationPages.UploadExPage.OnSubmit(Object
    o, EventArgs e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessReque... f72b639c-77b1-5045-c3a2-b23f24ae71c0
    It's clear that the Sharepoint upload code tries to do things with the original name and it does not realize that it was renamed.
    Can I do something from my event receiver code like using the AfterProperties to bypass this error?
    Thanks

    Hi Dennis,
    The issue still persists. Here is the code:
            public override void ItemAdded(SPItemEventProperties properties)
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    try
                        OutputDebugStringA("Inside ItemAdded");
                        string szHttpUrl = properties.WebUrl + "/" + properties.AfterUrl;
                        SPWeb openedWeb = properties.Web.Site.OpenWeb(properties.Web.ID);
                        SPFile spf = openedWeb.GetFile(szHttpUrl);
                        EventFiringEnabled = false;
                        string szUrl = properties.AfterUrl;
                        szUrl = szUrl + ".renamed";
                        string szNewFileName;
                        if (szUrl.LastIndexOf('\\') != -1) szNewFileName = szUrl.Substring(szUrl.LastIndexOf('\\') + 1);
                        else if (szUrl.LastIndexOf('/') != -1) szNewFileName = szUrl.Substring(szUrl.LastIndexOf('/') + 1);
                        else szNewFileName = szUrl;
                        if (properties.ListItem != null)
                            properties.ListItem["Title"] = szNewFileName;
                            properties.ListItem.Update();
                        spf.MoveTo(szUrl);
                        EventFiringEnabled = true;
                        base.ItemAdded(properties);
                        OutputDebugStringA("Renaming to " + szUrl);
                    catch (System.Exception exception)
                        OutputDebugStringA("ItemAdded ERROR: " + exception.ToString());

  • Delete Dataset File not working

    Hi All,
      I am trying to delete file from application server (AL11) directory after processing using DELETE DATASET FILE is not working , after processing also file still exists.
    My code is like this,
    *&      Form  backup_file
          The file has been processed.  Go ahead and copy it to the
          backup directory and delete it from the processing directory.
    FORM backup_file .
      DATA: lv_oldfile TYPE string,
            lv_backup TYPE string,
            l_rc TYPE i.
      IF p_appl = 'X'.  "Unix file
        lv_oldfile = wa_files-filename.
      Replace the directory name with the backup directory.
        REPLACE p_dir IN wa_files-filename WITH p_back.
      Tack date/time onto the end of the file name to avoid duplicate
      files
        CONCATENATE wa_files-filename
                    sy-datum
                    sy-uzeit
                  INTO wa_files-filename.
        OPEN DATASET wa_files-filename FOR OUTPUT
                                       IN TEXT MODE
                                       ENCODING DEFAULT.
        IF sy-subrc NE 0.
          f_backup_error = 'X'.
          EXIT.
        ELSE.
        Write the file contents to the new backup file.
          LOOP AT itab_input INTO wa_input.
            TRANSFER wa_input TO wa_files-filename.
          ENDLOOP.
        ENDIF.
      Close the backup file.
        CLOSE DATASET wa_files-filename.
      Delete the original file from the processing directory.
    if sy-subrc = 0.
        DELETE DATASET lv_oldfile.
    endif.
    endform.
    Thanks Everyone!

    HI,
    You have to check the value of Sy-subrc after the delete statement,
    and the value present in the variable lv_oldfile that if there is correct
    value in the variable populated or not.
    Moreover after assigning the value to variable lv_oldfile in the step 
    lv_oldfile = wa_files-filename.
    then you should use this variable lv_oldfile only for open dataset and close dataset also.
    Hope ir helps
    Regards
    Mansi

  • Calendar Alarm Open FIle not working in Mountain Lion

    Recently upgraded my mac mini server to 10.8.2 Mountain Lion. I need it to open a particular Filemaker file every morning, and close the application every night. Used to have a simple alarm in iCal set to do this with Open File and then a very simple Automator script to close the program at a scheduled time, also in iCal. Worked fine. Now, in trying to recreate this, it doesn't work - I make the scripts, and if I set them for a time I can test them (ie. 5 minutes from now), they work as planned, but they will not function on their own at the scheduled time. I thought it might be going to sleep, so I set Energy Saver to Never go to sleep, unchecked "Put hard disks to sleep when possible", and checked "Wake for network access". Still not working. Any thoughts? Any idea how to even troubleshoot this?

    I thought I was on to something, but then I re-read your post and saw that you've successfully tested your scripts in Calendar.  So, all I've got left to offer is a silly question: has the calendar been set to ignore alerts?  I ask because just within the last few days I created an Automator calendar alarm, tested it successfully (in the same fashion as you), and set it off to run on its merrily-scheduled way, only to discover it wasn't firing on its own.  Like you, I double-checked my Energy Saver settings and it looked like things should work just fine.  What I finally found was that at some point during all my testing and fiddling I'd ticked the "Ignore alerts" box for the calendar,  and that's what was keeping my script from firing.

  • Animated gif files not working in FF5 ok in every other browser

    Hi .
    I am having problems getting animated gifs to play in firefox 5 i am using a photo gallery script to show these files it works in every other browser i have access to (most of them on Linux and windows Xp and win7 ) if i use FF5 as a file manager and navigate to the files they run but not from a web page this is only with firefox 4 and 5 not got previous to 4 to test .

    Right . this looks like it may be a problem with the way FF5 is handling various methods of viewing images i use the following code .
    <pre><nowiki><a class="thumbnail" href="#thumb"><img src="photos/IMG_7039 EOS-1D Mark III copy.jpg" width="100px" height="75px" border="0"><span><img src="photos/Animations/IMG_7039 EOS-1D Mark III copy.gif"></span></a></nowiki></pre>
    along with css .
    <pre><nowiki>(
    .gallerycontainer{
    position: relative;
    /*Add a height attribute and set to largest image's height to prevent overlaying*/
    .thumbnail img{
    border: 1px solid blue;
    margin: 0 5px 5px 0;
    .thumbnail:hover{
    background-color: transparent;
    .thumbnail:hover img{
    border: 1px solid blue;
    .thumbnail span{ /*CSS for enlarged image*/
    position: fixed;
    background-color: lightyellow;
    padding: 5px;
    left: -600px;
    border: 1px dashed gray;
    visibility: hidden;
    color: black;
    text-decoration: none;
    .thumbnail span img{ /*CSS for enlarged image displays the large image*/
    border-width: 4;
    padding: 12px;
    .thumbnail:hover span{ /*CSS for enlarged image*/
    visibility: visible;
    top: 0;
    left: 230px; /*position where enlarged image should offset horizontally */
    z-index: 50;
    )</nowiki></pre>
    to create the gallery now if i navigate directly to the dir with the gif images in they work ok but if i use the gallery method they fail .
    Tried safe mode no addons no change ..

  • Y Generate to File not working?

    Hai,
    V are facing some probelms with reports6i.
    1.we are calling the report using the command line method not
    run_product.for these reports 'Generate to File' menu is not working.It shows
    an error like Umimplemented Error (rep-0999).How to solve this problem.
    2.In one report we are using CLOB field.but when we take the print output of
    this field some of the characters are missing in print out.the problem what
    we think is that, there is no entre key padding when a word wrap is
    occuring.We have to give it manually which is not applicable in all
    cases.Please give some methods to solve these probelms.
    Please treat this as an urgent matter.
    thanking you,
    dilip

    hai,
    regarding the 1st point there is one default printer attached to my m/c.but still the same error is coming. is it bcoz v r using command line arguments.but there should not be any link how u r calling the reopt.do v need to to pass any argument for doing this operations.my generate to file menu is enabled any way.pls help me to solve this problem.
    regards,
    dilip

  • Generate to File not working

    Hai,
    we are calling the report using the command line method not
    run_product.for these reports 'Generate to File' menu is not working.It shows
    an error like Umimplemented Error (rep-0999).There is one default printer attached to m/c. and the operation system is winows nt.This is working when running the report in report builder.it is not working when called through menu.Pls help me to solve this problem.
    dilip

    Hi,
    I am not sure what do you want to convey here - "It is working with Reports builder and not working with menu". From Report builder, only way to generate the otput to file is to go through menu, there are no other shortcut or toolbar icon present. Do you want to say, it works when you run to previewer but is failing when you generate to a file. To give you a hint:
    1. Does the problem exist with only this report or with all the reports?
    2. If the problem is with all the reports, then there is a setup problem.
    3. Try running PRINTER DRIVER TEST against your printer, to check it is ok?
    4. Check that the login under which you are trying to run the report, has the priviledge to print with this default printer.
    5. Try changing the printer driver?
    If this does not solve the problem, please contact Oracle support to resolve this issue.
    Thanks,
    Rohit

Maybe you are looking for

  • File sequence display problem

    I am having a problem today that I have never had before.  The files in a particular folder that I have imported are not displayed in filename order. When I first imported them they lined up as expected.  However as I have continued to work on the 20

  • Urgent! form with webutil works with IAS but not with the 9iDS

    I'm configuring a standalone PC on which i can run forms as if they were running with an IAS. Now we have a form which uses webutil. This form runs fine in our IAS-environment, but fails on the standalone PC. On the standalone machine I'm using 9ids

  • Hi Regarding F1 help

    Hi everybody, I want to know the function module to get F1 help for  parameter or select options Thanks in Advance, [email protected]

  • Songs taking up more space

    I recently purchased a new Dell. On my old computer, my 1486 songs measured out to about 6.2gb. When I loaded my cds to my new computer, a Dell with Vista, the 1533 songs now take up 11.3 gb. My ipod used to be able to handle all 1486 songs with room

  • Computer just randomly shuts down, is sluggish

    Hi all, Been having a problem with my HP Pavillion 774e (runs Windows XP) for the past month or so now. . .it just shuts down at the most random times. Typically I will start the machine, get going on the internet, and then foom. . .it just shuts off