Replace/Update default website on OS X Server (Yosemite)

I am certain this comes down to a fundamental lack of understanding on my part, but I cannot for the life of me work out how to replace the default website on OS X Server.
I have read that it is not designed to be replaced, so I have created a new entry in the website list... but with no luck. I followed the instructions here: Setting up a local web server on OS X but still continue to get 403 errors.
Can anyone point me in the direction of a set of instructions for setting this up? I really (at this stage) only want it to serve locally, not over the internet - which I thought would make it simpler...
Thanks!

There's a bit of guesswork on my part here because I have not used OS X Server.
Obviously you've found httpd.conf.
The root directory of the standard web server is defined in there - on OS X it is:
DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
Require all granted        <-------------- means anyone can access it from any domain ----------------->
</Directory>
The instructions to which you are referring I guess are the ones about allowing users to set up their own sites, needing the relevant modules to be activated in that file:
#LoadModule userdir_module libexec/apache2/mod_userdir.so
to
LoadModule userdir_module libexec/apache2/mod_userdir.so
#Include /private/etc/apache2/extra/httpd-userdir.conf
to
Include /private/etc/apache2/extra/httpd-userdir.conf
...then in http-userdir.conf....
#Include /private/etc/apache2/users/*.conf
to
Include /private/etc/apache2/users/*.conf
At this point I am assuming that Apache doesn't really care that this is a user-related issue and so any file ending in .conf in that directory will be included in the Apache Server config (once stopped and started). However, the fact the the site name is then ~shortname suggests the user model is important and access permissions may mean you need to be logged in as that user for all I know.
....in the shortname.conf file in that /private/etc/apache2/users/ directory would be something like this:
<Directory "/Users/shortname/Sites/">
    AddLanguage en .en
    LanguagePriority en fr de
    ForceLanguagePriority Fallback
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from localhost
     Require all granted
</Directory>
The relevant directory is /Users/shortname/Sites/ ---- I suggest putting a simple index.html page there to test first.
....then http://localhost/~shortname
.....should work.
Remove the line Allow from localhost and access from elsewhere should also be possible.
I wish I could be more help - but without a server to use and check what I am saying I think that is about all I can offer, and I suspect none of this is new to you.
Andy

Similar Messages

  • I have broken default website on moutain lion server

    Hi.
    I am not sure how I did it exactly but do take full responsibility.
    I switched on Website from server.app and all was well. I got the greating, nice globe, the lot.
    However, I am now getting (from a browser) unable to connect, as if no website/server exisits.
    I have rebooted, stopped and started from GUI, and command line.
    Everything looks like it is working but no webpage.
    I even created a simple index html to say hello world and place this in the document root. Nothing.
    So, where do I start looking, there must be a log file somewhere? Right.
    Thanks
    Lee
    The reason I was playing with websites is I intend to load Roundcube Webmail but this may be difficult without a working apache server!

    OK and this get strange now...
    I left it alone for a while. As you do...Honest no poking...
    And the localhost now displays It Works!
    Which is good enough for me but seems a bit tempermental plus where did the pretty MAC SERVER page go ?

  • How to Install BAM Alerts in multi environment in 2013 R2? How to point to a single BAM Portal(Default WebSite) configured on BTS APP server1 from BTS App Server 2 and BTS App Server 3 ?

    Please guide me on BAM install in multi environment for 2013 R2. Any blog which can show, how to configure multiple BTS servers to point to a single BAM portal created on the first server.
    The BAM portal is configured on the Default Website on the first server.
    How Could I Point to the same portal while configuring other 2 BTS servers?
    What are the authentication mechanisms, I have to use at virtual directories and root level?
    Racha Rams

    The document for installing BAM for B2K13 in a multi-computer environment is available as part of the BizTalk documentation available for download from
    http://www.microsoft.com/en-in/download/details.aspx?id=35552
    You will most likely also need to refer to the TechNet Blog
    http://blogs.technet.com/b/meamcs/archive/2013/07/26/fixed-biztalk-2013-bam-tools-configuration-problem.aspx which mentions having to setup SQL Mail feature in SQL Server 2012 and post that configuring both the features BAM Tools and BAM Alerts together.
    Regards.

  • I can't find the default website of Apple webserver. I can't find it in Mac Server Lion

    I put a new website on Server.app and now i cant get it back to the default website. Its my first server and i was trying to put 2 websites on one domain

    You can find it in:
    /Library/Server/Web/Data/Sites/Default

  • Im looking for a replacement of "Default Zoom Level" addon.

    Im looking for a replacement of "Default Zoom Level" addon. Why is this disabled in Firefox 5/6? Is there a similar addon or how can I set the default zoom?

    Did you do a compatibility check?
    That is required in cases where the extension has a maxVersion (in this case 4.0.*) set in the XPI file and the server has the correct compatibility data ([[https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=2&id={D9A7CBEC-DE1A-444f-A092-844461596C4D}&version=4.5&maxAppVersion=6.0&status=userEnabled&appID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}&appVersion=5.0&appOS=Windows&appABI=x86-msvc&locale=en-US&currentAppVersion=5.0&updateType=97 8.*]]).
    From https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/<br />
    Works with: Firefox 3.6 - 8.*

  • Help in updating a website..any suggestions anyone???

    Hey,
    I am trying to update a page on my website and it won't allow me to. I have the Dreamweaver software interacting with the FTP server, etc. What is going on wrong? Please respond as soon as possible.
    Thanks.

    Thanks for your response, but I am still getting this blank white page with links on them...why is that?
    Go to the website....www.wayofrealdiscoveryinc.org and you will see my problem. Also, click on the link that says "2009 website" and that is the true website...
    Thanks and I hope to can help me solve this problem.
    What you see there is what normally happens when a) you browse to a folder for which there is no default file found by the server, and b) the host for the website has left 'directory browsing' enabled so that you are seeing a directory listing of the files on the server.
    Obviously, this is a bad thing in most cases.  The solutions are -
    1.  Ask your host to disable directory browsing
    2.  Create a file with a default filename and upload it to that folder (ask your host what the default filenames are)
    How long have you had this domain with this host?

  • Apache proxy, Node.js and Default Websites

    Hello everyone !
    I'm currently using a mac mini server under OS X Mavericks (10.9.1) and Server 3.0.2
    I've been very happy with it, and found it was quite nice to use... until I decided to host a Ghost blog (https://ghost.org) on it. Ghost runs on Node.js (http://nodejs.org).
    I have a domain (domain.com), and two subdomains (www.domain.com and sub.domain.com).
    The server and it's default websites use sub.domain.com, with http://sub.domain.com redirecting to https://sub.domain.com
    I want to use both domain.com and www.domain.com for the blog.
    Using cloudflare for the DNS, I created a CNAME for domain.com, pointing to www.domain.com (domain.com CNAME www.domain.com).
    Node.js and Ghost install both went well, with Node.js listening on port 2368.
    I then started configuring a virtual host (www.domain.com) in the Server.app for the Ghost blog , along with an Apache Reverse Proxy, by editing www.domain.com's .conf and replacing everything in it by
    <VirtualHost 10.0.1.2:80>
         ServerName www.domain.com
         ProxyPreserveHost on
         ProxyPass / http://localhost:2368/
    </VirtualHost>
    Going to www.domain.com, I correctly end up on the Ghost blog.
    But, amusingly and annoyingly, when trying to access the default website through sub.domain.com... it's also the blog that shows up !
    After setting up another website (sub2.domain.com) in the Server.app and configuring the DNS appropriately at Cloudflare, I could notice that I end up on the default page for "empty" websites (the "welcome to Server... blabla" page).
    So the server's default website is the only one getting this issue...
    I've been spending two days on it, trying nearly every other Apache Reverse Proxy configuration I could find (yes, even the weird one where you go through DNS settings that you can find somewhere in these forums).
    Anyway, some help would be greatly appreciated

    Ok... So, while I did not find a solution, I did find a workaround.
    Get ready people...
    First, create www.yourdomain.com on port 8080 in the Server App.
    Then, create www.yourdomain.com on port 80 in the Server App, and choose to make a redirection from this site to www.yourdomain.com:8080.
    After, go to the 0000_any_8080_www.yourdomain.com.conf file, and open it with textedit.
    Replace everything in it with
    <VirtualHost *:8080>
         ServerName www.domain.com
         ProxyPreserveHost on
         ProxyPass / http://localhost:2368/
    </VirtualHost>
    Save it (don't forget replace the original 0000_any_8080_www.yourdomain.com.conf with it if needed and to keep the.conf extension)
    And there you go !
    For SSL, do the same thing, except you need to replace the 80 port by the 443 port, and the 8080 port by the 8443. And don't forget the certificates, for both of them.

  • 10g webgate not protecting the IIS application but protecting base IIS page on the same Default website

    Hello Gurus,
    I have an 10g webgate installed on the IIS server application that I am trying to protect using OAM 11g which is running on a separate server. There is OHS as well running on a separate server which I have set as a proxy to the OAM access server.
    My problem is:
              Whenever I try to access the http://IIS-server-host/ url, the webgate intercepts the request and shows me the OAM SSO login page. Once I provide correct credentials, I can see the basic Windows IIS 7.5           welcome page.
              But whenever I try to access the protected application page http://IIS-server-host/abcd/** where abcd is the protected application, then the OAM SSO login page doesn't show up and the application directly           throws an error. When I see in Fiddler trace the webgate does intercepts the request but then since I have OHS server setup as a proxy to the OAM server, the request stops at the OHS server URL.           http://ohs-server:ohs-port/.
              The /abcd application is hosted on the "Default Web Site" iitself. I can see in the IIS manager that, there is a separate sub-branch just below default website /abcd.
    What could cause this issue? and how should I resolve it? Please advise to the earliest as this is holding up my other activities!!
    Thanks.

    if request stops at OHS server url then issue must be at OHS level   ideally you should see two urls in Fiddler trace before login page is loaded one is /oam/server/obrareq.cgi and then /loginPage .. you see these URL in Fiddler trace ? anything you can gather from IIS / OHS / OAM Server logs ?
    whats error application is throwing ? is it Webgate error (Oracle Access Manager Operation Error) ?

  • How to set default website for exchange 2010

    I'm unable to launch the Exchange Management Console, and then I read that it's necessary to set the default web site in a particular way, in order for Exchange 2010 Management Console to work:
    http://social.technet.microsoft.com/Forums/en/exchange2010/thread/4d396628-3867-4c95-9541-e0eb021e0135
    However, after setting up Sharepoint, I see that it has modified the default website, and I'd like to ask for specific settings on how the default web site bindings should look (for exchange). Could someone please advise what I need to do to correct it?
    I'm having trouble interpreting what Mike Crowley recommends in the linked post above, in terms of actual steps to the site binding information (which won't mess up what exists).
    Currently it says:
    Type           port         ip address        binding information
    net.tcp                                            
    808:*
    net.pipe                                          
    net.msmq                                         localhost
    msmq.formatname                            localhost
    http            80             127.0.0.1
    https          443            *
    http           80              *
    https          443            127.0.0.1
    It seems the line for http on port 80 is *, which I guess is equivalent to 'all unassigned'. Is the previous http port 80 binding to 127.0.0.1 causing the problem?
    But I'm also supposed to set a Powershell VDir in IIS. Can someone provide steps for that? 

    Regarding SharePoint on Exchange:
    It was not allowed earlier, as documented here:
    http://office.microsoft.com/en-us/sharepoint-portal-server-it/coexistence-and-interoperability-guide-for-sharepoint-products-and-technologies-HA001160777.aspx & here:
    http://support.microsoft.com/kb/825505 but there doesn't seem to be anything more recent than this.  I would work under the assumption it is not supported outside of
    SBS 2011 (which I am not very familiar
    with).
    Mike Crowley
    Check out My Blog!

  • Can I move my iWeb from mac-mini to my new macbook pro ? iLife 11 does not have iWeb and I really want to use it to update my website on my new macbook Pro instead of Mac mini

    Can I move my iWeb from mac-mini to my new macbook pro ? iLife 11 does not have iWeb and I really want to use it to update my website on my new macbook Pro instead of Mac mini

    There is no license required for iWeb.  Just do a Wyodor suggested and you'll be ready to go. If you're running Lion however, consider the following:
    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Can NOT update my website (Golive 4)

    Im a Mac user. My server is itsamac is golive 4 just too old? or is it something else

    What do you mean by you can't update your website? Can you not connect to the server via FTP? Can you connect but not upload files?

  • New to CF: What do I need to get started to update a website developed in CF?

    Hi. I have been asked to update a website that was developed in Coldfusion and I am not sure how to get started. I'm very familiar with HTML and I've been studying CFML. What I need to know now is how to get started. The website is not live yet and I need to make some changes to the content. I have Dreamweaver and I know I can download Coldfusion. Can someone please explain to me what needs to be done next? After I download CF then what? How do I make changes and save them on a site that isn't live yet? Do I need to go live with the site before I make changes? Is it possible to connect to a ftp server of a site that's not live yet? The site has a domain name that's registered.

    BagelBites wrote:
    How do I get my changes to appear on a site that has already been developed but hasn't gone live yet?
    Publish your changes to that site.
    How you do that depends on what connection types you have to that site.  This might be done with FTP, WebDAV, Network File access or other methods.
    How you view the changed content will also depend on what you mean by 'gone live'.  Is there a Domain name that points to the content?  Do you know the IP address?  Is there some temporary Domain Name?  I have used all these methods and others in the past, depending on what I was working and how it was being hosted.
    These questions are most likely more definitively answered by talking to the system operators of whom ever is maintaining this web server for you.  If this is a hosting company, they may have common answers to these types of questions in a FAQ or other documentation.  If not, directing the questions at their customer support channels should yield appropriate results.
    If this is not true, then my strongest suggestion would be to find a better hosting solution!

  • Crystal report Export/Print issue with Non default websites

    Hello ,
    I have an issue and its driving me nuts.
    My problem i guess with the crystal reports. Might also be with IIS.
    We have developed an website on VS2008. This website is configured on IIS 8.5
    The server on which iis8.5 runs is a virtual server.
    I have configured the website to run as two different virtual directories as mentioned below;
    1) To run under default website (servername/virtualdirectory)
    2) To run under complete separate website (www.abc.com/virtualdirectory)
    if i  run crystal report using the servername/virtualdirectory, then the report is rendered fine and i can export the results also to any format and print successfully.
    But when i run the crystal report using www.abc.com/virtualdirectory, then the report renders fine but i cannot export the results nor print. Nothing happens when i click the export button.
    Any help will be highly appreciated.
    Thanks
    Abdul Aleem

    In addition to Don's suggestion. Remember that almost any action in the viewer will cause a post back - including clicking on the export button. If the report is not in session, the post back may fail and nothing will happen. See the following code on how to place a report object into a session:
    1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete code)
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Link to default website

    Ive got the server up and running and Ive changed the default website to my own site (created on iweb). How to I get iweb to link to the default website? (this may be an iweb question!) I want to be able to access all the default websites functions from a link on my website but I cant work out how to do it!

    Go to Server Admin --> Web --> Sites --> Aliases. Under URL aliases and redirects, click the + sign. In the pup-up dialogue, next to pattern enter whatever you like (remember it though and note it should be with both a forward slash prior to and after the text, like this: /alias/) and next to path enter /Library/WebServer/Documents/
    Hit OK and Save.
    Now you're done in Server Admin, so you can close it. In iWeb link whatever it was you were linking to whatever you entered next to pattern, in between those slashes in Server admin.
    You're done...

  • Put website on hosting web server

    Hello -
    I am trying to set up my website on brinkster's web server.  I have an existing web site on there.  I need to redirect the user to the correct site.  Brinkster has sample code for doing this that looks like the following:
    <%@Language=VBScript%>
    <%
    SiteNameURL =  Request.ServerVariables("SERVER_NAME")
    Select Case SiteNameURL
                Case "yourdomain.com"
                    Response.Redirect "page1.asp"
                Case "www.yourdomain.com"
                    Response.Redirect "page1.asp"
                Case "yourotherdomain.com"
                    Response.Redirect "page2.asp"
                Case "www.yourotherdomain.com"
                    Response.Redirect "page2.asp"
                Case "subdomain1.yourdomain.com"
                    Response.Redirect "page3.asp"
                Case "subdomain2.yourdomain.com"
                    Response.Redirect "page4.asp"
                Case Else 'Everything other than cases specified above
                    Response.Redirect "other.asp"
    End Select
    %>
    Brinkster said to put it in an aspx page in the webroot.  What part of the page am I supposed to put the code in?  Brinkster could not answer that question for me.
    Also, Brinkster said I didn't need to replace "SERVER_NAME" with the name of the server.  I am getting squiggly lines for SiteNameUrl.
    Please help!
    Juniormint

    For best help with your web deployment issue, I suggest you ask here:
    http://forums.asp.net/26.aspx/1?Configuration+and+Deployment

Maybe you are looking for