Yosemite, Apache, and VirtualHosts

Hi All,
I've got Apache set up on my MacBook (the default instance of it), and after updating to Yosemite, none of my virtual hosts work any more. I've got a couple of domains pointing to my localhost, and they should be forwarded to directories by their corresponding VirtualHost definitions. This worked fine in Mavericks, so it must be something to do with Apache 2.4 (he says confidently...)
My etc/hosts has lines like this in:
127.0.0.1  staging.example.co.uk
My httpd.conf has the following lines (amongst others) uncommented:
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
Include /private/etc/apache2/extra/httpd-vhosts.conf
And my http-vhosts file has entries such as:
<VirtualHost *:80>
    ServerName staging.example.co.uk
    DocumentRoot /Users/Drew/Sites/example/staging
</VirtualHost>
After restarting Apache (no issues in a configtest, syntax OK), and no matter which of the virtual hosts I try visiting, I always get the "it works!" file from the default path. Now, there may be other lines in my conf I've got uncommented that relate to this, I just can't remember them at the moment. I've spent a few hours on this, and my brain is frazzled. Any ideas or comments are welcome!
Thanks in advance.

yes.
try putting this in your http.conf file...see if it works.
If it doesn't, it shouldn't be too far from what you need..
RewriteEngine on
RewriteCond %{REQUEST_URI} ^site1.site.com [NC]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/.*$ https://site1.site.com/$1 [L,R]

Similar Messages

  • I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted!

    I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted and I can't use my computer!!

    I don't know if you've already resolved your problem, but I had the same thing, it took me 6 hours to fix it. I had the exact same as you, installed the update and then it went to a white screen. After trying start up holding down cmmd r or holding down the alt key to try to install it again, nothing worked, same result every time. Then an angel came to me here somewhere but I can't find it now to thank him. Start in safe mode, press shift once you hear the start up chime and hold it down until you hear it again. Installation completion box came up and it was working. turn off computer and start up again normally and all is well. Except my final cut pro x doesn't work with it, have to update that now too. same as when I updated to mavericks.
    Hope this helps.

  • Right problem with apache and tomcat

    Bonjour;
    I use a user login "apache" to stop/start Apache and tomcat. Because never launching apache et tomcat as root.
    But I have the following problem with apache (file error.log) :
    [Tue May  6 17:26:22 2003] [error] Connection "warpConnection" cannot connect
    [Tue May  6 17:26:22 2003] [error] Cannot open connection "warpConnection"
    [Tue May  6 17:27:01 2003] [error] Re-Trying to deploy connections
    As root the error msg does'nt exists (lost)
    Best regards;
    A+;

    Run it from the shell to see whats wrong:
    # httpd

  • After upgrade to Yosemite, drag and drop for files does not work, destination folder crashes.

    After upgrading to Yosemite, dragging and dropping files from one location to the destination folder, causes the destination folder crash. However, copying the file and then moving it works fine.
    I'm not sure where to report bugs, but I figured this would be the best option

    http://www.apple.com/feedback/  Feedback
    https://bugreport.apple.com/  BugReporter

  • I have already downloaded OS Yosemite (it says so on my Apple About this mac overview) but now I keep getting a message from "install Yosemite" that keeps asking me to install Yosemite again and won't go away.

    What do I do? I have already downloaded OS Yosemite (it says so on my Apple>About this mac>overview) but now I keep getting a message from "install Yosemite" that keeps asking me to install Yosemite again and won't go away.

    I have the same issue. My computer has also slowed down. I hope this isn't a malware. I haven't input my password into it, and dont know what I did to turn this on.
    Hope someone else can give some insight

  • I have a mac computer 3.2 Ghz intel core i3   with memory 4GB 1333 MHz DDR3,  I have recently purchased an new macbook and have yosemite software and iCloud .  I can no longer us my mac to open up recent numbers documents from my macbook.  I am unabl

    I have a mac computer 3.2 Ghz intel core i3   with memory 4GB 1333 MHz DDR3,  I have recently purchased an new macbook and have yosemite software and iCloud .  I can no longer us my mac to open up recent numbers documents from my macbook.  I am unable to upgrade to allow me to get the current numbers version on my mac. What do I need to do to get all my machines woking in harmony again

    On each machine turn on iCloud and sync all the available apps. Apple explains how to set up iCloud in http://www.apple.com/icloud/setup/
    After doing this run software update on each machine and install all the suggested updates. If you still need help installing the most up-to-date versions of iLife and iWorks open the Mac App Store - click the Purchased tab and update all that need to be updated.

  • Error while starting Tomcat Apache and Jaguar services in AW webview server

    hi,
    I am facing a problem with AW webview server. I am not able to restart the Tomcat Apache and Jaguar Service after a planned server reboot activity.I am getting the below error.
    "Could not start Apache Tomcat service on Local Computer. Error 1069. The service could not start due to log on failure"
    The below account has been verified in the Domain controller and confirmed that the account is not Locked out or disabled.
    I have AW , HDS and Webview running on the same server.
    Can someone advice ...

    What OS version?  This might be a windows problem and not a Apache/Jaguar problem.
    david

  • How to configure apache and weblogic in windows 2000

    i am novice,
    i want to configure apache and weblogic in windows 2000
    weblogic version is 6.1
    apache version is 2.0
    how to do?

    George,
    I would take the following 'first steps'
    1)Install Apache20 on your Windows machine following the Apache online documentation
    http://httpd.apache.org/docs-2.0/misc/tutorials.html
    2)Make sure you can 'serve up' static HTML content from your Apache Server
    3)Install Weblogic Server per our online documentation
    http://edocs.bea.com/wls/docs61/install/index.html
    4)Also, make sure you can 'serve up' both static and dynamic (e.g., JSP) content
    directly from WLS server
    5)Once you have both of the above 'sanity' checks attempt to configure a simple
    proxy by ppath or mime type via our online documentation
    http://edocs.bea.com/wls/docs61/adminguide/apache.html#103803
    Chuck Nelson
    DRE
    BEA Technical Support

  • Need Urgent Help with Apache and PHP

    I have been struggling with apache and php for a week now and I finally broke down to post a message.
    I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

    The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
    /etc/httpd/users/
    Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
    <pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
    Now check the Apache configuration:
    <pre>apachectl configtest<pre>
    If it says "Syntax OK", start Apache:
    <pre>sudo apachectl start<pre>
    Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

  • I need help, yesterday I installed and reinstalled the Yosemite system and take long to turn on my laptop, the bar takes to fill, and I'm worried. Can you help? thank

    I need help, yesterday I installed and reinstalled the Yosemite system and take long to turn on my laptop, the bar takes to fill, and I'm worried.
    Can you help? thank

    revert back to Maverick that is what I had to finally do. This was the worst upgrade I have ever seen. Hopefully you have Time Machine backup and can revert back. It was pretty painless except for a few issues. I will wait until Apple gets their stuff together on this upgrade or may never will.

  • Itunes refuses to open after installing yosemite. downloaded and installed the latest version but nada

    itunes refuses to open after installing yosemite. downloaded and installed the latest version but nada

    Thank you for the response Linc- here are the first four dozen lines-
    12/8/14 13:07:54.000 kernel[0]: memorystatus_thread: idle exiting pid 2205 [accountsd]
    12/8/14 13:07:55.000 kernel[0]: memorystatus_thread: idle exiting pid 2236 [com.apple.Accoun]
    12/8/14 13:07:56.000 kernel[0]: memorystatus_thread: idle exiting pid 2243 [com.apple.Addres]
    12/8/14 13:07:57.000 kernel[0]: memorystatus_thread: idle exiting pid 2267 [CloudKeychainPro]
    12/8/14 13:07:58.000 kernel[0]: memorystatus_thread: idle exiting pid 2212 [CalNCService]
    12/8/14 13:07:59.000 kernel[0]: memorystatus_thread: idle exiting pid 2204 [CalendarAgent]
    12/8/14 13:08:01.000 kernel[0]: memorystatus_thread: idle exiting pid 2269 [diagnosticd]
    12/8/14 13:08:02.306 UserEventAgent[234]: com.apple.TMHelperAgent.SetupOffer enabled
    12/8/14 13:08:02.000 kernel[0]: memorystatus_thread: idle exiting pid 2271 [com.apple.CloudP]
    12/8/14 13:08:02.769 com.apple.iCloudHelper[2237]: service connection interrupted
    12/8/14 13:08:02.769 com.apple.iCloudHelper[2237]: service connection interrupted
    12/8/14 13:08:03.000 kernel[0]: memorystatus_thread: idle exiting pid 2268 [com.apple.sbd]
    12/8/14 13:08:04.578 UserEventAgent[234]: com.apple.TMHelperAgent.SetupOffer enabled
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)
    12/8/14 13:08:04.000 kernel[0]: BUG in process suhelperd[177]: over-released legacy external boost assertions (0 total, 0 external, 0 legacy-external)

  • Enterprise portal access using reverse proxy using Apache and webdispatcher

    Hi Guys,
    As requirement, we need to give solution to customer about Reverse proxy scenario. I am new to this part.
    What we have think of to use Apache and Web dispatcher.
    I tried to search documents and found some sdn links also but still i am not comfortable to go about.
    Need suggestion and document if anyone has used so far.reverse proxy.
    As basis person, we need to do all ( Apache installation, Apache configuration, Web dispatcher installation and configuration, integration with EP.)
    It will helpful to me if i can get Apache installation, Apache configuration part and integration with EP, or web dispatcher, configuration etc.
    Thanks,
    Deepak

    We used Netscaler for Reverse Proxy implementation and can assure you that network team performed most of the set ups. This was on EP 7.01.
    From BASIS stand point it would be primarily Web Dispatcher Configuration.
    Also refer the links I specified in another thread. There are several scenarios discussed there -
    Re: Post values for userid and passowrd fields in logon page
    http://wiki.sdn.sap.com/wiki/display/BSP/Using+Proxies
    ~ Dhanz

  • Apache and Jserv issues - AppsLogin and AppsLocalLogin not working

    Hi,
    I am trying to understand the Apache and Jserv issues
    Home page - http://11i-tst-02.cisco.com:38901 - working fine
    This confirms that Apache core module is working fine. Does this confirm about the pls module also ?
    Apps local login - http://11i-tst-02.cisco.com:38901/OA_HTML/AppsLocalLogin.jsp - throwing Java Exception
    Request URI:/OA_HTML/AppsLocalLogin.jsp
    Exception:
    java.lang.NoClassDefFoundError
    at oracle.apps.fnd.sso.SSOManager.getAppsServletAgent(SSOManager.java:1727)
    at oracle.apps.fnd.sso.SSOManager.getLoginUrl(SSOManager.java:316)
    at oa_html._AppsLocalLogin._jspService(_AppsLocalLogin.java:410)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
    at oracle.jsp.JspServlet.service(JspServlet.java:148)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java:479)
    Is it related to SSO ? Because error mentions about SSOManager
    But why does AppsLocalLogin need to go thru SSO ?
    Doesn it mean Jserv issues ? I am able to see same message logged in jvm logs ?
    Restarting Apache doesnt help
    Servlet login - http://11i-tst-02.cisco.com:38901/oa_servlets/AppsLogin - throws Internal Server Erorr
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    Apache log doesnt show any error
    Servlet test works - http://11i-tst-02.cisco.com:38901/servlets/Hello
    Example Apache JServ Servlet
    Congratulations, ApacheJServ 1.1 is working!
    OAM works - http://11i-tst-02.cisco.com:38901/servlets/weboam/oam/oamLogin - Navigating to SSO page for authentication
    AOL test works - http://11i-tst-02.cisco.com:38901/OA_HTML/jsp/fnd/aoljtest.jsp
    FND_WEB.PING works - http://11i-tst-02.cisco.com:38901/pls/QTCSTG/FND_WEB.PING
    Connection test works - http://11i-tst-02.cisco.com:38901/servlets/oracle.apps.icx.common.ConnectionTest
    So, my question is why AppsLogin and AppsLocalLogin are not working - if servlets / AOL / FND / OAM links are working
    Is there issue with Jserv ?
    Can someone please explain the significance of the above tests
    And which tests need to pass for AppsLogin and AppsLocalLogin to work
    Thanks

    Since all the tests work fine as you stated above, I suggest you do the following:
    - Rerun Autoconfig on all tiers
    - rm -rf $OA_HTML/_pages
    - Bounce Apache

  • Apache and PHP not working together

    Hey all,
    Ok, I reinstalled my server yesterday and followed the LAMP wiki to set up Apache, MySQL, and PHP. Now, I got Apache and MySql working great, but when I go to directory that has a .php file to open, my brower is asking me what application I want to open with the file.
    I have set up this to handle the docuemtns:
    DirectoryIndex index.php index.phtml index.html
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    and still no go.
    Anyone got this to work?
    Thanks!!!
    Joe

    cactus wrote:
    http://bbs.archlinux.org/viewtopic.php?t=15596
    Check and see if what I said in my last post is happening to you as well...
    Yeah, I checked and the path is correct...
    Maybe I should just reinstall it?
    Thanks!!!

  • Problems with Apache and custom JSPs

    Hi
    We've made an application on top of IFS, using JWS in our test envirnment. Just before making some stress tests, I'd like to try it using Apache. We're currently having two problems:
    1) I switch to the apache configuration running ifsconfig and not selecting JWS. When I try to access the ifs using http://host/ifs/files, everything goes well except that the "logout" icon doesn't appear. I did a little research and found out that the link goes to /ifs/webui/images/logout.gif. This gives an error in mod_jserv.log, like this one:
    [07/06/2001 22:54:20:315] (ERROR) ajp12: Servlet Error: ClassNotFoundException: webui
    It seems it's trying to find a "webui" class, since in ifs.properties every url that begins with /ifs goes to jserv.
    I don't know if this is a know problem or what should I've check...
    2) This one is more important. We're using some custom JSPs, which we use to edit the properties of some types of documents. Basically, when the user clicks over a file one of our JSP appears. These JSPs call a bean to do some processing, passing the HttpRequest as a parameter. The problem is that when using JWS we get the "path" request variable like in path=/%3A29464
    However, when using Apache we get path=/ifs/files/%3A29464 ( and afterwards we get an exception because the ifsSession.getPublicObject method doesn't work).
    Any hints on this? One way could be to check if the path begins with /ifs/files, but that's not really nice.. and besides I could have the same problem in some other parts.
    It's kind of urgent....
    Thanks
    Ramiro
    null

    Hi,
    The answer to your path problem is that you can make use of API to find out the current path so that it works both with Apache and with JWS. Follow the steps
    1. import the oracle.ifs.adk.http package in your custom jsps
    <%@ page import = "oracle.ifs.adk.http.*" %>
    2. Then within your jsp use the method
    getIfsPathFromJSPRedirect
    <%= oracle.ifs.adk.http.HttpUtils.getIfsPathFromJSPRedirect(request) %>
    This will give you the current path of the object on which you clicked on and which initiates the custom jsp.
    You can look at the CMS application which has made use of this API. URL is
    http://otn.oracle.com/sample_code/products/ifs/sample_code_index.htm
    Choose, sample applicatin -> Content Management system.
    Hope this helps
    Rajesh
    null

Maybe you are looking for

  • How can I back up my data in this situation?

    I was using my MacBook Pro running Mountain Lion normally and just fine, when suddenly every click of the mouse started to result in 5 minutes of the spinning color wheel. I tried restarting, and learned that my laptop can now take up to 60 minutes j

  • [Solved] error upgrading glibc

    First of all I am a newbie My uname -a Linux myhostname.domain.org 3.5.3-1-ARCH #1 SMP PREEMPT Sun Aug 26 09:14:51 CEST 2012 x86_64 GNU/Linux When I do pacman -Syu error: failed to commit transaction (conflicting files) glibc: /lib exists in filesyst

  • Global changes to jumps

    I am using RH 8 for Word. The project I am working on now has about 250 jumps to the same location on an external file. The external file was renamed, and now RoboHelp does not recognize the file or find the topic. 1. Is there an easy way to fix this

  • The microphone of my iPhone is not working and I'm not getting any support :(

    I've been experiencing this problem since a few months now.. The microphone of my phone works fine for a few seconds at times and then goes off again.. This happens even if I've put on earphones. Help please

  • Itunes - home share or not?

    I would appreciate someones help please. We have bought our kids an ipod touch each for xmas. We want to set them up on either home share or their own itunes accounts. As the kids are quite young, we want to have some control on what, when and how th