Defining Virtual Hosts so the Server App does not hijack them?

Does anyone know how one might define manually define virtualhosts in Lion Server so the OS does not go and trash them, or mess with the conf files? Right now the server keeps stealing any virtual hosts I create manually and creating conf files to the standard of the Server App. The problem is I have several virtual hosts that have custom information in them and I need to restore the file whenever this happens. Any ideas?

Put all your config files in something unknown to Apple. I like to use 'vhosts' instead of 'sites'.
Then just add this to your httpd.conf...
Include /private/etc/apache2/vhosts/*.conf
I would keep a copy of your httpd.conf at all times. Apple likes to wipe that out on system updates.

Similar Messages

  • Server App does not change SMB AFP option as expected

    I have been fighting SMB shares on Mac OS since upgrading to Mountain Lion (I skipped Lion) and I think I have the situation figure out at least in my case.
    First Opportunistic Locking needs to be turned off in Windows 7. It does not appear that Mac OS supports it and this is why my connection got disconnected.
    In the regestry at, [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Paramet e rs] add this,  "OpLocksDisabled"=dword:00000001
    Now for the SMB shares for people using the Server App. The Server App. is where you setup shares but I think there is a bug. In my case the Server App. was not actually turning on SMB and/or AFP services for the users listed in the server permissions. I had to go to Sharing under System Preferences then select the share I want the service to apply to then select Options. I found that the SMB and AFP services were not enabled even though they had been set in the Server App. Once I enabled them all was as it should be.

    Same problem. I had to rebuild my LDAP database and when I imported the users and groups, they appear in Workgroup Manager but they don't appear in Server app. Well..   they do sometimes.  If I click the "Add Users" button, sometimes they'll appear briefly then go away in Server app. I can also edit a user and look at their group membership via Server app and the groups from Workgroup Manager appear but they are grayed out...  also, the users from the LDAP server will disappear at first and I have to click on another button, like "Configure Network" and then click back on "Add Users" and the network users will be there...  but no group.
    This is crazy.  It's like working on a '74 Chevy Vega.  Did ANYONE at Apple QA this?

  • Since upgrading to the newest version of ios 8, I can no longer share my photos on facebook. I have tried going to setting-photos, but the facebook app does not show up for me to change the settings. Any suggestions?

    Since upgrading to the newest version of ios 8, I can no longer share my photos on facebook. I have tried going to settings-privacy-photos, but the facebook app does not show up for me to change the settings. Any suggestions?

    when you opened the shared library with the newer version of iPhoto (iPhoto '11) you were given a warning that your library would be converted and could not be used by older versions - you clicked ok to go ahead - there is no updo available - either upgrade to iphoto '11 of the MBP or load your backup of the iPhoto '09 library on it - older versiopns of i{Photo can not read newer libraries
    LN

  • After upgrading to iOS 8, the weather app does not show up results for any of the Indian States/cities

    After upgrading to iOS 8 on my iPhone 5, the weather app does not show up results for any of the Indian States/cities. Can Apple look into this or does anyone have a solution to this.

    Swipe from bottom of days listed ("Wednesday, Thursday, Friday, etc")  upwards.  I thought it was gone too but it's still there~just takes different way to access it.

  • HT1947 The Remote app does not work with my McBook Air !!!!

    I have tried several time - but the REMOTE app does not seem to work with Mac Book Air.
    Any help ?
    Any comments?

    why ask in the appletv forum rather then the forum for macbook air or whatever ios device you are running the remote app on?

  • When I connect my ipad or ipod to the computer, itunes does not show them as a "device".

    When I connect my ipad or ipod to the computer, itunes does not show them as a "device", however my computer can see they are connected. so it seems to be a problem with itunes. i have tried re-installing itunes and it still doesnt work.
    My Iphone does show as a device when connecteing wirelessly.
    Its not a problem with the driver becasue the computer can see the devices, so its a problem in itunes.

    Hello mimward,
    It sounds like Windows can see your devices, but iTunes is not seeing them. I would use the troubleshooting in the following article named:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • TS3960 After upgrading to Lion server 10.7.4, Server.app does not start.

    I upgraded from 10.6.8 Server.  The Mac OS 10.7.4 starts fine, but when attempting to launch 'Server' (which does appear in the launchpad) nothing happens (the application does not start).
    I checked for this:
    sh-3.2# sudo launchctl list | grep -q com.apple.servermgrd && echo loaded || echo not loaded
    loaded
    Thank you in advance for any help on this front. AV

    I got solution.After I reset the Server.App i could able to login the Server.App.
    For reference : http://krypted.com/mac-os-x-server/hosed-your-mountain-lion-server-reset-it/

  • Server.app does not authenticate network admin users

    Running fresh installation of Lion Server 10.7.3. I'm logged in as the original, local, administrator.
    I open Server.app and successfully log in to the local machine with the local administrator creditials. I create a networked user allowed to administer the machine. Close Server.app window.
    Attempt to log in as the new networked administrator. I get a message about using the server's self-signed certificate. I click accept, then the log-in shakes it head, won't let network admin log-in. Repeated attempts to log in do not show the certificate warning -- the log-in fails every time, though.
    Attempt to log is as local admin, works OK.
    How to fix?

    Hi Stefan, I have the Server app problem here on my Xserve 2009 and it happened after about 14 days of working correctly. No users or groups(850 network) show in the panes other than the two local admin users on the server. The +/- buttons are greyed out also. If you enter some letters for a search in Users/Groups it will actually display the network users containing the letters and eventually it populates the window with network users up to the usual 500+ limit but refresh and they all disappear again. Thinking back before it happened I used WGM to add a new user instead of Server and it was shortly after when the users "disappeared" and the+- buttons greyed out. I dont have much confidence in Server app at the moment and im just glad WGM/SA is still in operation. I agree with Danny_Sch that Server app starts to act strangely after using WGM
           WGM acts as usual with all my 850 users showing from the OD and Server admin shows all my services running ok. All users can log in and out fortunately at the moment. This happened initially when I migrated to Lion and I had to use my OD archive demoting and promoting to master to get it to work but I dont want to have to rebuild the whole thing again as we have very limited downtime to do it in a big institution etc. I'm trawling the net looking for a fix but no definitive answer. Has anyone reported this as a bug to Apple I wonder?

  • Socket problem with reading/writing - server app does not respond.

    Hello everyone,
    I'm having a strange problem with my application. In short: the goal of the program is to communicate between client and server (which includes exchange of messages and a binary file). The problem is, when I'm beginning to write to a stream on client side, server acts, like it's not listening. I'd appreciate your help and advice. Here I'm including the source:
    The server:
    import java.io.IOException;
    import java.net.ServerSocket;
    public class Server
        public static void main(String[] args)
            ServerSocket serwer;
            try
                serwer = new ServerSocket(4443);
                System.out.println("Server is running.");
                while(true)
                    ClientThread klient = new ClientThread(serwer.accept());
                    System.out.println("Received client request.");
                    Thread t = new Thread(klient);
                    t.start();
            catch(IOException e)
                System.out.print("An I/O exception occured: ");
                e.printStackTrace();
    }ClientThread:
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.net.Socket;
    import java.net.SocketException;
    public class ClientThread implements Runnable
        private Socket socket;
        private BufferedInputStream streamIn;
        private BufferedOutputStream streamOut;
        private StringBuffer filePath;
        ClientThread(Socket socket)
                this.socket = socket;     
        public void run()
            try
                 this.streamIn = new BufferedInputStream(socket.getInputStream());
                 this.streamOut = new BufferedOutputStream(socket.getOutputStream());
                int input;
                filePath = new StringBuffer();
                System.out.println("I'm reading...");
                while((input = streamIn.read()) != -1)
                     System.out.println((char)input);
                     filePath.append((char)input);
                this.streamOut.write("Given timestamp".toString().getBytes());
                ByteArrayOutputStream bufferingArray = new ByteArrayOutputStream();
                  while((input = streamIn.read()) != -1)
                       bufferingArray.write(input);
                  bufferingArray.close();
                OutputStream outputFileStream1 = new FileOutputStream("file_copy2.wav");
                  outputFileStream1.write(bufferingArray.toByteArray(), 0, bufferingArray.toByteArray().length);
                  outputFileStream1.close();
                this.CloseStream();
            catch (SocketException e)
                System.out.println("Client is disconnected.");
            catch (IOException e)
                System.out.print("An I/O exception occured:");
                e.printStackTrace();
        public void CloseStream()
            try
                this.streamOut.close();
                this.streamIn.close();
                this.socket.close();
            catch (IOException e)
                System.out.print("An I/O exception occured:");
                e.printStackTrace();
    }The client:
    import java.io.*;
    public class Client
         public static void main(String[] args) throws IOException
              int size;
              int input;
              //File, that I'm going to send
              StringBuffer filePath = new StringBuffer("C:\\WINDOWS\\Media\\chord.wav");
              StringBuffer fileName;
              InputStream fileStream = new FileInputStream(filePath.toString());
            Connect connection = new Connect("127.0.0.1", 4443);
            String response = new String();
            System.out.println("Client is running.");
              size = fileStream.available();
              System.out.println("Size of the file: " + size);
            fileName = new StringBuffer(filePath.substring(filePath.lastIndexOf("\\") + 1));
            System.out.println("Name of the file: " + fileName);
            connection.SendMessage(fileName.toString());
            response = connection.ReceiveMessage();
            System.out.println("Server responded -> " + response);
            ByteArrayOutputStream bufferingArray = new ByteArrayOutputStream();
              while((input = fileStream.read()) != -1)
                   bufferingArray.write(input);
              bufferingArray.close();
            FileOutputStream outputFileStream1 = new FileOutputStream("file_copy1.wav");
              outputFileStream1.write(bufferingArray.toByteArray(), 0, bufferingArray.toByteArray().length);
              outputFileStream1.close();
              byte[] array = bufferingArray.toByteArray();
              for (int i = 0; i < array.length; ++i)
                   connection.streamOut.write(array);
              response = connection.ReceiveMessage();
    System.out.println("Server responded -> " + response);
    connection.CloseStream();
    Connect class:import java.io.*;
    import java.net.Socket;
    import java.net.UnknownHostException;
    public class Connect
    public Socket socket;
    public BufferedInputStream streamIn;
    public BufferedOutputStream streamOut;
    Connect(String host, Integer port)
    try
    this.socket = new Socket(host, port);
    this.streamIn = new BufferedInputStream(this.socket.getInputStream());
    this.streamOut = new BufferedOutputStream(this.socket.getOutputStream());
    catch (UnknownHostException e)
    System.err.print("The Host you have specified is not valid.");
    e.getStackTrace();
    System.exit(1);
    catch (IOException e)
    System.err.print("An I/O exception occured.");
    e.getStackTrace();
    System.exit(1);
    public void SendMessage(String text) throws IOException
    this.streamOut.write(text.getBytes());
    System.out.println("Message send.");
    public void SendBytes(byte[] array) throws IOException
         this.streamOut.write(array, 0, array.length);
    public String ReceiveMessage() throws IOException
         StringBuffer elo = new StringBuffer();
         int input;
         while((input = streamIn.read()) != -1)
              elo.append((char)input);
         return elo.toString();
    public void CloseStream()
    try
    this.streamOut.close();
    this.streamIn.close();
    this.socket.close();
    catch (IOException e)
    System.err.print("An I/O exception occured: ");
    e.printStackTrace();

    The problem that was solved here was a different problem actually, concerning different source code, in which the solution I offered above doesn't arise. The solution I offered here applied to the source code you posted here.

  • I installed Firefox today but it will not open and the icon on the taskbar will not close and I cannot uninstall it and the helper app does not work either?

    I have tried everything that I know to uninstall the new version of Firefox. I also installed Aurora beta and it had the same behavior and I was able to uninstall that. I cannot open a ff browser to work on it using much of your support information. I click on icon but it does not start on the desktop but task manager shows it as running. I have to end task in task manager to close it. I can't uninstall it and have tried system restore but that also doesn't work because of another issue with my antivirus program.

    If this is on a Windows computer, check this Microsoft link;
    '''''[http://support.microsoft.com/mats/Program_Install_and_Uninstall Fix problems that programs cannot be installed or uninstalled]'''''

  • The soundcloud app does not appear for download in the app store since I upgraded to IOS 7

    Hi,
    I have a iPad 4, and i was using it fine, I decide to restore my iPad to upgrade to the iOS 7 and since then some apps don't appear in the App Store to download, Soundcloud app is one of them. Need help please.
    Thank you!

    Not sure why you are not seeing it. I just checked the App Store on my iPhone and in iTunes on my Mac, and it shows up in both places, indicating that it has updates for iOS 7 compability.....(and is an iPhone/iPad app)....
    GB

  • The mail app does not rotate, only this

    Only this app!!!

    Try closing the Mail app via the taskbar and see if it rotates when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't fix it then try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • DAC - drops indexes in the task but does not create them back

    DAC is dropping indexes for a task but not recreating them. The execution plan drop/create checkbox is checked and other tasks' index drop/create is working correctly. Index setup is checked for drop/create as well.
    Is there somewhere within DAC that controls this function?
    Any suggestions are appreciated.
    Thanks.

    You want a "Drop Box" style folder. You should be able to achieve this by creating a folder and giving it permissions similar to the "Drop Box" folder in your users Public Folder (i.e. write only permissions.)

  • The Mail App does not run in my Mac, and also does not allow to download any actualization

    I also tried to send it to the Trash Can but there´s always a message that says "Close all the applications first" even when all the apps are closed but aparently the #mailapp is not

    Hi, are the pics at a remote location, or on your Mac?
    Have you tried drag & dropping the graphics on the signature window?

  • All of my bookmarks still exist in \Documents&Settings\Bob\Favorites, but when I re-installed Mozilla Firefox, the Bookmarks option on the Mozilla toolbar does not see them. Can you help me direct the Bookmarks option to the correct location? thanks, Bob

    OpSys = Windows XP
    Browser full details = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9

    That is the location for Internet Explorer favorites, you will need to import them into Firefox. For details on doing that see [[importing bookmarks and other data from Internet Explorer]].

Maybe you are looking for

  • I am getting error 100 with adobe download assistant

    I am getting error 100 when I try to log into adobe download assistant. I am using windows vista , on chrome, and use AVG firewall which I allow all adobe. What can I do trying to install Photoshop cs5 extended.

  • Connect Ipod to Itunes Message

    My ipod's battery died on me while I was on vacation about 3 days ago. At the time I had no means of charging it, but when I returned home I attempted to charge it on my PS3 (I have done this many times and it usually works fine). When I turned my ip

  • Applying results of healing brush to a new layer?

    Is there a way to use the healing brush or spot healing brush by applying the changes you are making to a new blank layer instead of the original layer? Thanks.

  • Explorer - Data Source Preference

    Hi All, I am working on the Explorer Accelrated version and trying to analyze for any business which has got a BW system, what is the basis of deciding which one would be better source:- MultiProviders?? InfoCubes?? Query?? Any views. Cheers.

  • Dealing with Windows 7 Bitlocker

    Hi Team, Working on Win 7 bitlocker with MDT 2012. If we use MDT enable bitlocker step in TS, What does it exactly do? I am looking to configure win 7 image in a way that it has bitlocker enabled during image engineering\deployment.  Does this featur