Simple web server setup - missing something

I am trying to use 10.9 OS X Server to set up a simple test web server.  Simple PHP sites to be tested on this standalone server.  Here is what I have done:
1) Set up the OS X Server DNS services to resolve a test domain name (name.test) to 10.0.1.255
2) Set up OS X Server Website Services adding the domain name, sending it to a directory on the Mac (listening on any IP address port 80).  Checked enable php but I can not get far enough to worry about that now.
3) In Network Setting given the Mac a static IP address 10.0.1.225
4) In Network Settings set the DNS server to 10.0.1.225
Based on my limited knowledge I would think that is it. 
But then on that same server when I enter the domain name into safari it just goes out and does a google search on the name.  Clearly the linkage is not being made.
Safari works for surfing, so it appears the basic network settings work.
When I go to 10.0.1.255 I get the Welcome to OS X Server page.
Any help would be appreciated.  Am I missing something simple, or is my basic reasoning flawed about how this should work?

Safari searches the name on google because .test is not an ICANN domain name. To have it not search you have to add http:// (http://name.test).
Don't add .local to hosts, as bonjour handles all .local domain names.
The following should work for you.
1. Start DNS service and add only one entry pointing to your server, Name it whatever you like but .com, .org, .net , etc... Are more appropriate as they are ICANN domain names. (If your servers ip is 10.0.1.255, it should point to 10.0.1.255)
2. Enable DNS forwarding to a public DNS server (8.8.8.8 for google's)
3. In network settings make DNS 127.0.0.1.
4. Server may add an alert saying the hostname has changed, make sure you update all services. Using scutil to update the hostname is a good idea too
5. Enable the web service, you should be able to connect to it by typing in your domain name. If it is not a ICANN name you have to have http"// before the domain name. You have to type in the name exactly, do not at www. unless you put www. in the DNS server configuration.
I hope that all makes sense

Similar Messages

  • After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    Hello Kirk,
    Thank's for your efforts, and I just wish that this was the solution.  Unfortunately, it isn't because, after double-clicking on the pdf in the website, it simply "opens" in another Safari window as a black screen - the pdf is there, somewhere, but not visible (either as an icon, or as a document). 
    When I right-click in the black Safari window, where the file is supposed to be, the only option available to display the file is to "Open file in Internet Explorer" (which is not what I want to do).  Other options include saving or printing the pdf, which I don't want until I've confirmed that it's the form that I want.  The same options are offered if I right-click on the file icon in the website.
    Any other suggestions, please?

  • Most Arch like Web Server setup?

    What is the most Arch like Web Server setup?

    or http://www.hiawatha-webserver.org/
    Fantastic small KISS web server.

  • IOS as a simple web server

    Dear Community!
    I would like to use a Cisco router as simple web-server hosting an automatic proxy configuration script file. Is is possible to configure HTTP AAA to allow access without username / password authentication?
    See the test configuration below:
    aaa new-model
    aaa authentication login CISCO_HTTP_AUTH none
    aaa authorization exec CISCO_HTTP_AUTH none
    aaa authorization commands 15 CISCO_HTTP_AUTH none
    access-list 99 permit host [***Host IP***]
    ip http server
    ip http access-class 99
    ip http authentication aaa login-authentication CISCO_HTTP_AUTH
    ip http authentication aaa exec-authorization CISCO_HTTP_AUTH
    ip http authentication aaa command-authorization 15 CISCO_HTTP_AUTH
    no ip http secure-server
    ip http path flash:
    Router#dir
    Directory of flash:/
        1  -rw-    22855564                    <no date>  [*** IOS Image ***]
         2  -rw-        3877   Sep 2 2010 13:15:09 +02:00  ipproxy
    33030140 bytes total (10170568 bytes free)
    Router#
    Thanks in advance!
    Regards
    Belabacsi

    Define an authentication method using "none" then apply it to the http authentication configuration.
    e.g.
    aaa authentication login example none
    ip http authentication aaa login-authentication example
    Please be aware of the security implications of this.

  • A simple web server !!! Help needed ...

    Well, I was trying to create a simple web server. It just accept a request from a browser and send a response.
    But I just cannot send the response to the browser. I am able to receive the request from the browser. Can anyone give me a clue what is wrong or what i have to do in order to send response to the browser? I am really puzzled !!!
    Here is the code
    =============
    package service;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.net.SocketException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class Listener implements Runnable {
    private InputStream is;
    private OutputStream os = null;
    boolean connected = false;
    ServerSocket server=null;
    Socket client=null;
    public Listener() throws SocketException, IOException {
    server = new ServerSocket(2772);
    client = server.accept();
    System.out.println("Connected to :" + client.getInetAddress().getHostAddress() + " @" + client.getPort());
    is = client.getInputStream();
    os = client.getOutputStream();
    Thread t = new Thread(this);
    t.start();
    public void run() {
    String b = "";
    while(true) {
    try {
    int c = is.read();
    if (c!=-1) {
    b +=(char)c;
    System.out.print((char)c);
    } else {
    System.out.println(b);
    break;
    //System.out.println(b);
    if (b.contains("keep-alive") && !connected) {
    connected = true;
    System.out.println("request recieved sending response");
    String lineSep = System.clearProperty("line.separator");
    String data = "<html><head><title>URA DHURA</title></head><body>HHH</body></html>";
    String res = "HTTP/1.1 200 OK" + lineSep + "Connection: close" + lineSep + "Date: Thu, 06 Aug 1998 12:00:15 GMT" + lineSep;
    res = res + "Server: WebApplication" + lineSep + "Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT" + lineSep + "Content-Length: " + (data.length()-1) + lineSep;
    res = res + "Content-Type: text/html;" + lineSep + data;
    System.out.println("<" + res + ">");
    os.write(res.getBytes());
    os.close();
    // Thread.sleep();
    } catch (IOException ex) {
    Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
    =======
    When ever i entered the url from the browser i get this output :
    OUTPUT
    ======
    Connected to :127.0.0.1 @2143
    GET / HTTP/1.1
    Host: localhost:2772
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; bn-BD; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: UTF-8,*
    Keep-Alive: 300
    Connection: keep-aliverequest recieved sending response
    <HTTP/1.1 200 OK
    Connection: close
    Date: Thu, 06 Aug 1998 12:00:15 GMT
    Server: WebApplication
    Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT
    Content-Length: 65
    Content-Type: text/html;
    <html><head><title>URA DHURA</title></head><body>HHH</body></html>>
    ===========
    Can any one give a clue???
    Thanks.

    Well, I was trying to create a simple web server. It just accept a request from a browser and send a response.
    But I just cannot send the response to the browser. I am able to receive the request from the browser. Can anyone give me a clue what is wrong or what i have to do in order to send response to the browser? I am really puzzled !!!
    Here is the code
    =============
    package service;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.net.SocketException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class Listener implements Runnable {
    private InputStream is;
    private OutputStream os = null;
    boolean connected = false;
    ServerSocket server=null;
    Socket client=null;
    public Listener() throws SocketException, IOException {
    server = new ServerSocket(2772);
    client = server.accept();
    System.out.println("Connected to :" client.getInetAddress().getHostAddress() " @" client.getPort());
    is = client.getInputStream();
    os = client.getOutputStream();
    Thread t = new Thread(this);
    t.start();
    public void run() {
    String b = "";
    while(true) {
    try {
    int c = is.read();
    if (c!=-1) {
    b =(char)c;
    System.out.print((char)c);
    } else {
    System.out.println(b);
    break;
    //System.out.println(b);
    if (b.contains("keep-alive") && !connected) {
    connected = true;
    System.out.println("request recieved sending response");
    String lineSep = System.clearProperty("line.separator");
    String data = "<html><head><title>URA DHURA</title></head><body>HHH</body></html>";
    String res = "HTTP/1.1 200 OK" lineSep "Connection: close" lineSep "Date: Thu, 06 Aug 1998 12:00:15 GMT" lineSep;
    res = res "Server: WebApplication" lineSep "Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT" lineSep "Content-Length: " (data.length()-1) lineSep;
    res = res "Content-Type: text/html;" lineSep + data;
    System.out.println("<">");
    os.write(res.getBytes());
    os.close();
    // Thread.sleep();
    } catch (IOException ex) {
    Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
    {code}
    =======
    When ever i entered the url from the browser i get this output :
    OUTPUT
    ======
    Connected to :127.0.0.1 @2143
    GET / HTTP/1.1
    Host: localhost:2772
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; bn-BD; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: UTF-8,*
    Keep-Alive: 300
    Connection: keep-aliverequest recieved sending response
    <HTTP/1.1 200 OK
    Connection: close
    Date: Thu, 06 Aug 1998 12:00:15 GMT
    Server: WebApplication
    Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT
    Content-Length: 65
    Content-Type: text/html;
    <html><head><title>URA DHURA</title></head><body>HHH</body></html>>
    ===========
    Hello endasil,
    Actually I got a sudden idea of developing a web application which allows the content to be accessed from a web browser. Its user interface will be accessible through browser. Of course you can say I could use PHP, JSP as the frontend and at the back end USE the application.
    But I just want to explore and learn.
    Any way,
    Thank you for your reply.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Simple web server

    I am trying to write a web server that accepts a directory and port number as command line arguments and then serves the contents of that directory as requested over the specified port.
    It must be able to handle binary files. It must also cache the contents of the directory using a HashMap or something similar. All requests must also be written to simple logfile detailing request, content type/size, result etc.
    Can anyone point me towards any sample code? I am having difficulty especially with the caching and handling of binary files. I think this can be done together....i.e. when the contents of the directory are read into the Hash Map I want to check if it is a binary and text file and to store this info.
    If anyone has done something similar before I would be VERY grateful for any sample code or pointers. I am under real pressure at work and this is an assignment for a part time Masters I am undertaking.

    Because binary files such as .doc cannot simply be
    handled in the same way as a text file.Why not? (I never implemented a webserver, so there might be a good reason. But I don't see it so far.)

  • FRUSTRATED:Simple Tasks - Am I missing something or does iTunes fall short?

    So last night I became VERY frustrated because I attempted the SIMPLE TASK OF COPYING MP3 files to a flash card and ran into SEVERAL snags...
    I wanted to copy just my MP3 files (not AAC) and ran into the following snags:
    1) I COULD NOT FIND ANY WAY to burn songs or play list to ANYTHING other than CDs and I had way more data to transfer than would fit on a CD. Isn't there ANY WAY to copy songs to a flash drive?
    2) I couldn't find a way to select Full Album from the album list. I just wanted to view "Album View" as to choose from artists and pick an ENTIRE album skip a few pick a few more ENTIRE ALBUMS, skip a few, etc. I could not find a way to select an ENTIRE album from the Album List without selecting EACH song INDIVIDUALLY. It IS the ALBUM LIST chy can't you select an entire ALBUM? Am I missing something?
    3) Then when I tediously selected about 40 albums (song by tedious song) it wouldn't copy them over. Apparently it was too much data to handle. So I had to reselect albums in groups of 10 (song by tedious song). Is it true iTunes can't handle more than a few MB of data at a time?
    4) After this tedious FLASH card backup I synced my iPod and low and behold I couldn't sort by GROUP which is how I classified all my music since A) every time I set a custom GENRE and tags, it would default back to the often WRONG GENREs that Apple had assigned after "GETTING TRACK INFO or ALBUM ARTWORK." Isn't there any way to sort by GROUPS on the iPod? Is there any way to assign CUSTOM GENRES and not have them go back to the default and often wrong default settings that iTunes assigned?
    i think those were ALL SIMPLE TASKS that iTunes SHOULD have been able to accomplish quite easily. But apparently not! If I am missing something, please enlighten me.
    Bonus questions...
    Why does iTunes break up some albums into a few songs at a time and not others? I can't get them back together unless I select COMPILATION, which it might not necessarily qualify as?
    Half of my CDs I copied over to iTunes sound great on the computer but tinny and play through the right speaker only. What settings should I use, because the default ones don't sound good.
    Why does iTunes keep CONSTANTLY interrupting/stalling my computing when it is just copying CDs. I thought the whole point of selecting COPY CD and EJECT in the preferences was to eliminate this. [I'm running on a brand new MacBook Pro with MAXIMUM memory available]
    The icing on the cake is that I couldn't finay ANY MANUALS for iTunes on the APPLE.COM site and only incredibly rudimentary video tutorials that cover little. I also have the official Apple book on iTunes whih doesn't cover ANY of these topics
    Finally , are there any good alternatives to iTunes as a database and e-jukebox?
    THANKS to ANYONE who took the time to read this FRUSTRATING VERBOSE NOTE.

    1) I COULD NOT FIND ANY WAY to burn songs or play list to ANYTHING other than CDs and I had way more data to transfer than would fit on a CD. Isn't there ANY WAY to copy songs to a flash drive?
    Just find the tracks in iTunes, mount the flash drive, and drag the tracks from the iTunes window to the flash drive. Or find them in the iTunes Music folder and drag them to the flash drive.
    2) I couldn't find a way to select Full Album from the album list. I just wanted to view "Album View" as to choose from artists and pick an ENTIRE album skip a few pick a few more ENTIRE ALBUMS, skip a few, etc. I could not find a way to select an ENTIRE album from the Album List without selecting EACH song INDIVIDUALLY. It IS the ALBUM LIST chy can't you select an entire ALBUM? Am I missing something?
    Turn on the Browser view; View menu -> Show Browser. The you can just click on an artist and then click on the album.
    Why does iTunes break up some albums into a few songs at a time and not others? I can't get them back together unless I select COMPILATION, which it might not necessarily qualify as?
    Make sure that the album titles are exactly the same. Even an extra space will make it a separate album to iTunes.
    The icing on the cake is that I couldn't finay ANY MANUALS for iTunes on the APPLE.COM site and only incredibly rudimentary video tutorials that cover little. I also have the official Apple book on iTunes whih doesn't cover ANY of these topics.
    Tried the iTunes Help? You might also find these helpful:
    Installing iTunes and Getting Started
    The New User's Guide for iTunes
    iTunes 101
    There are also a number of third-party books on iTunes if you want it all on one place precompiled.
    Regards.

  • Web server setup for Roku XDS connection?

    Looking for instructions for proper web server settings in OS 10.6, as it relates to a Roku XDS digital media player using the Roksbox "channel" (roksbox.com).
    The Roksbox site references a "How To" from macinstruct.com (http://www.macinstruct.com/node/112) on how to set up the web server, but it appears to be based on an older version of Mac OS.
    It's simple enough to turn on the web server, but I am not clear on how to configure it, along with the firewall and other security settings, such that I won't be vulnerable to attacks from outside my network.
    The goal is to be able to get media content from my Mac Pro to play on the Roku, using my existing (wired) network and the Roksbox channel.
    Any thoughts would be appreciated.

    Currently we only officially support ADF 11g deployment to WebLogic.
    There is at least one report of someone running this on Tomcat here:
    JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6
    Note that this will require you to have an ADF runtime license though.

  • Iplanet Web Server Setup !!

    Hi
    I am new user . I would like to setup the sunOne 6.1 web Server on Solaris 10 onx86 platform on Ultra 20.
    Is there any start up document is available ?
    Thanks
    Ravi

    Hi Ravi,
    You can start by downloading the software (it's free!) The "Getting started guide" on this page will get you started:
    http://docs.sun.com/app/docs/coll/1308.1

  • How to preview graphic files on a home web server setup?

    I apologize if this question is not asked in the most technical way, but here goes:
    I'm read online on how to create a home web server or ftp server on a Mac computer. (I plan to do this with my G5, running OSX 10.6.4)
    I would like to have a library of folders containing all of my graphic files that I've collected over the years in order to have access to them (if needed) when i'm working remotely.
    I want to be able to easily view all of these graphic files like I can with Adobe Bridge (eps, psd, ai, gif, jpg, png, etc).
    Is there software I can use that will allow me to view a gallery thumbnails of all of these file types when I am away from home and logging into the ftp server or web server?
    I know software such as Transmission FTP will allow me to look at one image at a time, but I'd like to view an entire gallery of thumbnails at once for quick reference.
    Thanks in advance.

    Hi johnny-griswold;
    The G5 was called a PowerMac and used a PowerPC processor.
    The MacPro is an Intel based Mac and is capable of running 10.6.4.
    You might what to drop your references to G5 because they are only confusing things.
    Allan

  • Supporting web portlets on multi-web server setup

    We are in the process of setting up a system that will have 2 web servers plus a system for the portal and its backend DB. (ie, the 2 web servers will have a load balancer in front of them to spread the work.)
    My question is: how do I support our web portlets that allow the users to customize them? These portlets use the File Customization Manager and so the customization settings are manintained in files on the web server.
    Since the load balancer may send a user to either of the web servers, how do you suggest I best maintain the customization settings? Use a shared file system? Don't use a shared file sys, but sync up the customization dat files some other way? Re-write all of the web portlets to use the DB to maintain the customization data?
    Thanks for any suggestions or help for this!
    Brian Downs

    The best way to handle this would be to use the DB Customization Manager and store the customizations in the database. You could also explore the NFS/shared file system route, but we have run into significant performance issues with NFS in the past.

  • Looking for a simple photo gallery web server setup

    Hi,
    I have Arch running on my low powered AMD HP microserver and am looking at letting relatives,friends etc see my photos over the web.
    I have php and sqlite3 already installed and dyndns setup.
    What further would I need (I'm looking for as painless, light and small as possible setup)
    Cheers
    Smiffy

    Yes - I've tried that and could try a few different setups until I find what I want.
    I was more looking for any recommendations especially from someone who has set something like this up before.
    This page was useful :-
    http://www.yolinux.com/TUTORIALS/LinuxT … llery.html
    BBGallery looks good and simple to me but needs GIMP (I have a headless server so don't really want to install extraneous sw)

  • Web Server Setup for Deploying a JDevloper Application

    Hello,
    I am trying to convince my adminstrative staff to allow me to create J2EE applications. We currently have a campus wide license. We were told by sales that to deploy a 11g JDeveloper application we would need a WebLogic server license. At this time, we do not have the budget to purchase this license. Is it possible to deploy a 11g JDeveloper application to a non-WebLogic server? If so, is there a white paper available for setting up the server?
    Thank you,
    Kelly

    Currently we only officially support ADF 11g deployment to WebLogic.
    There is at least one report of someone running this on Tomcat here:
    JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6
    Note that this will require you to have an ADF runtime license though.

  • Sane virtual mail server setup?

    I'm giving up. I want a simple mail server setup (imaps, pop3s, smtps) with virtual user support that I can comfortably configure from the web (PostfixAdmin, web-cyradm, courier-web). I want to manage multiple users on multiple domains. It appears that the task I want to accomplish is insanely complex for some reason. I'd like to use as few different software packages as possible.
    I can't find a simple and sane tutorial on the topic and I don't even care what software is going to be used. Of course, I did search and play around with the config for hours but to no avail. The tutorials in the Arch wiki are no good either, they are either outdated or do not allow me to do web configuration.
    Help me out here, please.

    It's always good to have alternatives, but out of curiousity, did you not try the courier-mta wiki? I used that wiki guide recently and it had me running with a system like what you describe without too much fuss. The only stuff I haven't tried/used is web-based administration or mail access; perhaps this was the problem for you?

  • Can't access folder on a TC drive via web server

    Here's the setup:
    I got a MBA (10.6) as a simple web server sharing files to a remote computer via VPN. For this, I created a symbolic link to the folders I want to share and dropped it into the root user's library/webserver/documents.
    The remote client accesses the folders via web browser with the internal IP (192.168.xxx.xxx/"folder") of the host (I know, there are fancier ways to do this, but that's how I've been doing it so far).
    Now, I wanted to relocate some of the folders to my TC drive. I did so, however I got an error message saying 'Forbidden, You don't have permission to access xxx on this server'. I tried to change the access permissions of the folders in question on the TC, but no avail.
    I couldn't reach them from the local net either.
    Anyone here, who knows how to solve this problem? Put it another way, is it even possible to access the TC that way?
    Any help is appreciated.
    Thanks!

    Thanks for the answer, but it was not the solution I have been looking for.
    I found a provisional workaround installing MAMP. Dropping the symlink folder in htdocs did the job. However, I'd be glad, if someone out there knew how to do this on the native OS X Apache, since running an additional server is pretty bothersome.

Maybe you are looking for

  • Tx1000 display output display to projector

    need help frenzzz. i have tx1000 and i upgrade to windows7. everthing goes alright. but when i wanna presentation in meeting. cannot connect to projector. not show at all. only show in laptop screen.. any sugestion?? thx before

  • How I can activate the tethering function on my Torc 9800

    I'm tring to activate the tethering function on my torc 9800 to allow tomtom Go500 to get access to internet for traffic information. I'm not able to find a place explaing how I can set up my Torc 9800. the current version of Torc Software is 6.0 - p

  • How to integrate GRC10.1 and Oracle ESB(Enterprise Service Bus)

    Dear,        we are delivering an GRC Access Control project.          Now, we need to integrate GRC10.1 and Oracle ESB, how should we do? Who could help show me some guide, thanks a lot.

  • Drivers and Software will not work on new hard drive

    Hello: Pavilion DV7-4270us Windows 7 64 bit I installed new 500 GB hard drive into the above referenced notebook, as previously installed 640 GB hard drive from factory began to fail. I have downloaded drivers and software for HP Media Smart, HP Simp

  • How to format / erase data on hard disk?

    Hi I have Solaris 9 installed. For some tests I need a HDD without any data on it. (Like a new one, you buy). As I don't have a new hard disk, I'd like to erase the data. How can I do this? Thank you in advance