Automatic subdomains based on folders mod_vhost_alias

I guess the mod_vhost_alias should give me this solution, but im not shure how to use it.
My goal is to have new folders in my root folder become a subdomain.
like this: folder: root/test
Gives: test.domain.com
Under Aliases it says "Aliases make folders on this server publicly accessible via URLs on this server"
Need to find out what to set in "type" and "Alias Path"
Any ideas?

Assuming your main site www.example.com is using the default directory path:
/library/webserver/documents
Create a virtual host (what Apple calls a "Site"), and specify the path to the files. 
Here, assuming that:
/library/webserver/documents/test
will be the files you want to serve for that test.example.com site.  Specify that as the path for the virtual host.
The whole "subdomain" stuff foo.example.com isn't central; it's a virtual host, just like www.example.com host.
Your web browser clients will have to have a www.example.com translation (as they likely already do) and a test.example.com DNS translation (and that's usually a DNS CNAME for the same host as www.example.com), as the name of the virtual host to be selected arrives from the browser client.
Aliases aren't related to this stuff.  They're a way to have two (or more) names resolve to one host ("site").  However.... Watch out for any wildcard (*) aliases that might be around.  Those * wildcards can sometimes be found in some configurations, and can cause confusing behavior with which sites get selected for an incoming request, until found and elimiated.

Similar Messages

  • REQ: Add 'Fit-width' or 'Fit-visible' view mode, in which the zoom level is automatically set based on the width of the _current_ page.

    Currently, the default zoom level when viewing a page of a PDF file is automatically calculated based on the width of the "widest" page of the document. This means that, if the document contains one page that is wider than the others or is in landscape orientation, then the default zoom, when viewing all the other narrower pages, is set in a way so that the page does not use the full width of the screen. This results in very poor experience, because the zoom level and the visible area of the page have to be constantly adjusted for each page. The latest update (at the time of writing) has added some extra view modes, but not the much needed 'Fit width' or 'Fit visible'.
    Personally, I can find no reason valid enough to justify the lack of such a view mode. Automatically setting the zoom level based on the width of the current page so as to take advantage of the full width of the screen should be a must have feature for mobile devices, if not the default behavior. The current default behavior regarding the zoom level is pretty much useless, even on 8"/10" screens. There should be a view mode in which the full width of the screen is always used to display the document.
    Examples of documents for which the Adobe Reader for Android provides a poor reading experience are:
    documents which contain some of their pages in landscape orientation.
    publications which, apart from the main content, also contain the full front and back cover in a single page (usually first page which is much wider than the content pages) or any other extra pages like cards or application forms (that are meant to be printed) which usually use an A4/Letter page size etc.
    documents which have been cropped by external utilities or scripts so as to eliminate unneeded white margins (in some cases not all pages have the same width).
    Please consider fixing the default behavior in future releases of the Reader for Android or add a 'Fit width' or 'Fit visible' view mode.
    Thank you in advance.
    Message was edited by: George Notaras
    Improved descriptions of example documents.

    To add to this, if you prefer you can separate your JavaScript from your JSF pages.
    Add a folder (I named mine 'js') to your application's ViewController project's public_html folder.
    Via JDeveloper, create a new JavaScript file inside your newly created folder and place your JavaScript functions inside it.
    You can then 'load' the .js file using the method Shantala described, with the addition of an added 'source' property to the af:reference tag.
    (This can also be a URI reference to a JavaScript file hosted on a web server)
    <f:facet name="metaContainer">
      <af:resource source="/js/myJsFile.js" type="javascript"/>
    </f:facet>The benefits of this 'split' are cleaner JSF page source and also code-highlighting and formatting within the .js file making finding and fixing bugs in your JavaScript much easier.
    It appears however, that when using <af:resource> to load scripts, once the page has been submitted even once, the JavaScript is no longer available to the page. Which isn't very useful.
    A solution is to use <trh:script>.
    Add xmlns:trh="http://myfaces.apache.org/trinidad/html" to your <jsp:root> tag and install the library.
    then in place of the above code use:
    <f:facet name="metaContainer">
      <trh:script id="script1" source="/js/myJsFile.js"/>
    </f:facet>Now after a page submit the JavaScript still functions.
    Edited by: Matthew Carrigy on 12/08/2009 10:39

  • Automatic clean of Recent Folders list in Finder's "Go" menu: how I did it

    Hi everybody. I just would like to share with you the trick I have found to automatically clean the "Recent Folders" list in Finder's "Go" menu.
    It costed me some work but eventually it worked.
    I wanted it to run at shutdown. If it were executed at startup it would need an extra command (killall Finder) to work properly.
    This is how I got it:
    Open the terminal and do the followings:
    cd /etc/
    sudo nano rc.shutdown.local
    insert your sudo password
    into the nano editor write the following lines:
    #!/bin/bash
    cd /Users/YourUserName/Library/Preferences/
    defaults delete /Users/YourUserName/Library/Preferences/com.apple.finder FXRecentFolders
    chown YourUserName:YourGroup com.apple.finder.plist
    Close (ctrl+x) and save (y and return)
    And now some explanations.
    the first instruction (#!/bin/bash) is just needed if you have an empty or not-existing rc.shutdown.localfile otherwise it should be just there.
    YourUserName is obviously the name of your user whose Finder's preference file you want to edit.
    YourGroup is the group your user belongs to. Usually it is 'staff'.
    the chown is needed because all this commands are executed by the script as root. So the "defaults delete" command changes the ownership of the com.apple.finder.plist to root:wheel, resulting in the loss of your Finder's preferences at reboot.
    For the same reason the "defaults" command specify the exact path to the domain to be edited (without the .plist part as usual).
    The rc.shutdown.local does not need to be set as executable. It works as it is created by nano but please remember to reboot twice after any change in order to see the effects.
    I hope it could be clear enough and somehow useful.
    Please feel free to add comment, questions or improvement suggestion.
    Thanks
    Bye

    Alright I have windows 7 and I tried downloading the new iPhone software at least 8 times now and each time the download completes, but then promps me that the connection has timed out. I am certain that it is not my internet connection because I have used several different networks. I was wondering if anyone had any idea how to change my internet options if that is the problem. I turned off all of my firewalls since I could not find a way to allow itunes to pass through the firewall even though it seems to be allowed. Thanks to anyone that can help.

  • Bookmarks are not automatically creating based on Word 2013 Table of Contents.

    Bookmarks are not automatically creating based on Word 2013 Table of Contents.  In older version of Word, the Style built Table of Contents converted into Bookmarks when PDFing.

    I figured it out.  There is a new checkbox you must turn on in Word 2013 when export to PDF that allows it to convert items to Bookmarks when PDFing.

  • Can the iPhone have settings profiles?  I want the settings of what apps are using the "call home" automatically set based on my location or the time of day.  Is this possible?

    Can the iPhone have settings profiles?  I want the settings of what apps are using the "call home" automatically set based on my location or the time of day.  Is this possible?  Of course the GPS location feature will need to be on in order for this to work.  But the idea here would be to optimize battery life by disabling the 'call home' requests of apps.  The settings profile should also support downloads as I would like to download and allow it when I am on WiFi but not so much when I am using my cellular data.

    No, this is not possible as the sandboxed nature of iOS would not allow any app to modify another app like that. Such a feature would have to be enabled by Apple as a part of iOS itself. You can submit feedback to Apple about the idea if you wish to.
    https://www.apple.com/feedback/

  • How do I automatically fetch for all folders in Inbox?

    I'm running an iPHone 4 with iOS5.  When i retrieve my email, only the inbox retrieves, but not any of the folders in the account.  I want to retrieve all the emails to that account.
    I searched online, and found this response to a question re iOS3:
    iPhone/iPod touch devices with multiple email folders tagged for synchronization, will synchronize only the Inbox folder automatically. 
    If folder mirroring is enabled on the server, the folders you select for synchronization appear in the Mailboxes list.  The Inbox is the only folder that synchronizes automatically.  On devices running OS 3.0 or later, however, you may select other folders (excluding Trash) to also synchronize automatically.
    Select Settings > Mail, Contacts, Calendars > (account) > Mail Folders to Push, then check the folders you wish to automatically synchronize.
    On devices running OS versions older than 3.0, folders other than Inbox will initiate synchronization only when they are opened or when using the reload icon (manually initiated sync). 
    Does this feature still exist on iOS5?

    Just thinking even further, new mail does even need to show up in my Inbox list. I'd be happy if showed up as the number of unread in my Accounts list

  • Automate USER BASED PACKAGE installations in SCCM 2012

    Hi All,
    I want to automate the installation of software(in my case a user based package) from the Application Catalog.
    Here is just some general information:
    1. All software(Applications and Packages) deployed to Device Colllections will be published in Software Center
    2. All software(Applications and Packages) deployed to User Based Collections will be published in the Application Catalog
    3. Once software has been deployed from the Application Catalog, it is also available/visible in Software Centre .. this could be confusing for (scripted) test purposes!
    To Automate installations i tested the following (Powershell) methods:
    Methode 1 - Install Device Based Packages (This works)
    $SoftwareCenter = New-Object -ComObject UIResource.UIResourceMgr
    # to show applications
    $Application = $SoftwareCenter.GetAvailableApplications() | where {$_.name -like $APPNAME}
    # to install an application
    $SoftwareCenter.ExecuteProgram($Application.id, $Application.PackageId, $true)
    (once an User Based Package has been installed from the Application Catalog, it will be shown in the results of this method .. but initially it don't!!)
    Method 2 - Install Device based Applications (This works)
    Invoke-WmiMethod -Namespace root\ccm\clientsdk -Class CCM_Application -Name Install -ArgumentList 0,"xxAPP scope IDxx",$True,$False,1,1
    Method 3 - Install User based Applications
    Invoke-WmiMethod -Namespace root\ccm\clientsdk -Class CCM_Application -Name Install -ArgumentList 0,"xxAPP scope IDxx",$False,$False,1,1
    (once an User Based Application has been installed from the Application Catalog, this method can be used .. but initially it can't!!)
    Method 4 - Install User Based Packages (NOT WORKING)
    This solution is based on an (scripted) installation from the Application Catalog. Information can be found on the following sites:
    http://blogs.technet.com/b/configmgrteam/archive/2012/09/19/extending-the-application-catalog-in-system-center-2012-configuration-manager.aspx
    http://allthingsconfigmgr.wordpress.com/2012/10/02/application-catalog-uncovered/#more-284
    You can see the usable operations/methodes, by using the following URL in your SCCM 2012 environment:
    http://YOURSITE/CMApplicationCatalog/ApplicationViewService.asmx
    The method i tried for an installation part is 'installapplication', see example below:
    $service.Installapplication($appid, $deviceid, $null)
    This syntax is correct because it's giving a result that indicates the my command was correct(when i change the variables it produces an error), but that's it ... no application is installed.
    For the record: the operations/methods 'RequestApplicationForUser and GetApplications' are working fine.
    There is also log file 'ServicePortalWebService.log' on the Application Catalog Server in
    C:\Program Files\SMS_CCM\CMApplicationCatalogSvc\Logs, where i can see that Installation call is (correctly) be done.
    To be short:
    Is there anybody who can tell me how to automate (with Powershell) an USER BASED PACKAGE installation?
    With kind regards,
    Hayo Veenstra

    Thanks for your reaction.
    What i want is creating shortcuts in the startmenu of a user, that initiates a SCCM software installation. We also use this method for our SCCM 2007 environment by initating advertisments. I do not want a required user deployments, because when that user
    logs on on another machine (for a short time) .. all his/her software will be deployed. So i do not want to install unnescessary software .. only what a user initiates.
    Do you have other suggestions?
    I'm not sure about the shortcuts.  But, as for required deployments to users installing on all machines they log onto:  Not if you have User Device Affinity running for you.  You can set a requirement in the application to only install on a user's
    primary device.  Another option that we often deploy is to use App-V to deploy a virtual version of that app if the device they logged onto is not their primary.  When they log off, it goes away.  This is all done using User Device Affinity. 
    This is new in 2012. 

  • Generate xml based on folders & files

    I was wondering if it was possible for Coldfusion to generate
    an XML file based on the folders and files within those folders?
    Basically what I would like is to create a main folder that
    contains the Coldfusion file that when the user goes to the site,
    Coldfusion would look within it's folder for all sub-folders and
    files within and create and XML file that Flash would then consume.
    Is this possible? If so, I'd really appreciate it if someone could
    let me know where I could find more information this.
    Thanks in advance,
    shayne

    Use the cfdirectory tag to get your data and the cfxml tag to
    convert it into xml.

  • When new CD are inserted, posible too automaticly copy files too folders??

    Hi.
    I get a lot of cds from customers.. Is it possible too get all the files/folders on a cd too copy automaticly too my desktop and then eject it???? I am soooo tired of doing this manualy:-D If it are posible too also put the files inn a folder with the name of the CD + Date it woud be too GOOD:-)
    Best regards
    Einar

    einar,
    Yes this is possible with an AppleScript or AppleScript/Automator combination.
    The challenge will be determining whether this is a new cd or not. Without knowing everytime you insert a cd it will copy the files to the desktop/folder. There are at least two ways around this:
    1) Have a database that keeps track of the CDs that have been processed;
    2) Have a dialog that comes up once the CD is recognized and lets you decide whether you want to process the cd or just mount it.
    I will see what I can come up with using the second method.

  • Sales Office and Sales Group Automatic Determination based on the Sold to P

    Hello every one
    We need determine sales office and sales group based on sold to party master data in Activity Management in SAP CRM 2007.
    I want to know if there is a way to do it when we save the document.
    Any ideas???

    hi, the sales org, office, group determination can be configure in Organization Determination.
    You can choose Org Determine rule for your CRM document.
    And if you feel the rule can't match your requirement,  you can create a new rule, and create customize function module for the rule, you can add your determine logic in the function module to realize your requirement.

  • Automatic PR based on Sales order, stock not on special stock E

    Hi,
    I woudl like to know if it is possible to have a kind of Individual PO, without having special stock, stock dedicated to SO. In other words, I would like to have the strong link between SO and PO, but keeping the flexibilty of normal stock.
    We want that the PO is linked with SO in a way or another (and automatic generation of PR like for TAB items would be perfect to us, but we could imagine to have it only through the tracking number of the PR), and we want that when we receipt PO, this is done on storage location stock, not on SO stock.
    Any idea to reach it ?
    thank you for your help.
    Regards,
    Christelle

    Hi,
    Its possible if you create a Schedule Line Category with PR type and without movement type.  After creating this you have to do as usual assignments for item category and schedule line category.
    Hope this works.
    Thanks
    Krishna.

  • File Server Migration - For ORG A Forest to ORG B Forest ( Need to create and Map Security Group automatically on new Migrated Folders - Please Help

    I have two forest With Trust works Fine .
    I have file server in ORG – A ( Forest ) with 2003 R2 Standard
    I have a File server in ORG  - B ( Forest ) With Windows server 2012 ( New Server for Migration )
    I have 1000 + folders with each different permission sets on ORG-A. We are using Security groups for providing permission on the share Folders on ORG A
    I need to Migrate  all the folders from ORG – A to ORG – B.
    I am looking for an automated method of creating Security Groups on AD during the Migration, Once the Migration is Done, I can add the required users to the security groups manually.
    Example.
    Folder 1 on ORG – A has Security Group Called SEC-FOLDER1-ORGA
    I need an automated method of Copying the files to ORG – B and Creating a new security Groups on ORG –B Forest with the same permission on parent and child Folders. I shall Add the users manually to the Group.
    Output Looks Like
    Folder 1 on ORG – B has Permission called SEC-FOLDER1-ORGB ( New Security Group )
    Also I need a summarized report of security Group Mapping, Example – Which security Group on ORGA is mapped with Security Group Of ORGB

    Hi,
    I think you can try ADMT to migrate your user group to target domain/forest first. Once user groups are migrated, you can use Robocopy to copy files with permission - that permission will continue be recognized in new domain as you migrated already. 
    Migrate Universal Groups
    http://technet.microsoft.com/en-us/library/cc974367(v=ws.10).aspx
    If you have any feedback on our support, please send to [email protected]

  • Automatic Reorder based Planning

    SAPers...
    I am trying to update re-order point automatically but with the following calculation:
    The Calculation is:  (Usage x Lead time / 7) + minimum stock
    Is there any way to build these custom calculations into re-order points to populate/update on an adhoc basis
    If not then......
    Can anyone give me some suggestions of how to map this best in SAP?

    Normally reorder point is calculated as below
    X = average consumption per day*Lead time in days+safety stock.
    Hence if your per day consumption is 10 and lead time is 100 days, safety stock is 500, then
    Reorder point is 100*10+500 = 1500. Hence if stock comes below this point, then system should create a PR with specified lead time and qty as per lotsize.
    pl come back if required.

  • Can Acrobat Pro X (win) merge pdf documents automatically (command line, watched folders, etc.) ?

    Greetings,
    I would like to know if there is a way to automatically merge PDF documents so that a script (vbscript, not AutoIT) can be relied upon to merge documents.
    Ideally, a command line approach or hot folder is what I am after.
    Thank you,
    Antoine

    You can with vbscript using IAC (InterApplication Communications) if you have Acrobat installed, and you're not using it on a server. More information is in the Acrobat SDK documentation. If you set it up to use a hot folder, only the licensee can be the one dumping the files into it.

  • Air Port Extrem: How to switch on / off automatically time based ?

    I like to have my Air Port Extreme switched off during night. How can I switch on at 6am and switch off at 11pm ?
    Horst

    The AirPorts do not have a feature to control power-on/power-off the base station itself, although, you can control access to it based on time. For what you are looking for, you may want to consider using a timer which you can plug the AirPort into.

Maybe you are looking for