Apache virtual host with OSX Server?

I have been running OSX Server for a while now, and just recently I decided to get McMyAdmin for my Minecraft server. The web client for McMyAdmin runs on port 8080, but I wanted it on port 80. I wanted to use it with my domain, so I just created a sub domain and pointed it to my server. The problem is that OSX Server apparently doesn't let me use port 80, even when websites are turned off. I decided to delete Server and just use plain apache. This worked until I realized that my website was only accessible locally. I have all the correct ports forwarded, etc. But I get the error:
Response Error.
Technical description:
502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.
when I try to connect from outside my network. This is probably just some simple thing I missed but it would be nice if someone could just point out what I did wrong here. Back to the point, I want to know how to run the proxy to my web client on port 8080 AND ALSO run OSX Server with or without apache virtualhost.
Thanks in advance,
Eamon

Web is stupidly easy - Apache has extensive support for multiple virtual hosts in a single server and will happily support as many domains/hostnames as you can throw at it.
Mail is a little trickier since it needs to hook into some kind of directory server to validate user addresses.
Mac OS X's Open Directory does support this, but it's a little cumbersome (basically every user has to exist in the main Open Directory domain as well as having a secondary email address(es) in the other domain(s).
This can get especially tricky when you have users with the same shortname in different domains - for example if you give [email protected] a secondary email address of [email protected] and you then get a new user [email protected], you can't give the third 'joe' the address 'joe' in Open Directory since that's already taken. This means he'll have to login using different credentials from his email address. Confused yet? You bet.
If you're prepared to eschew Open Directory you can just use Postfix's built-in support for virtual hosting, but it's a little more complex to setup and support and is entirely command-line based (i.e. there's no GUI for setting it up or supporting it).
So, for that reason you might be prepared to setup multiple virtual machines for each domain. It really depends on how much the domains are related (if at all).

Similar Messages

  • Virtual Hosts and CF Server Install

    CF8
    FC8 (yes I know it really has to be RHEL for support)
    Apache 2.2.6
    I am testing out a new webserver for a client. We are trying
    to use apache virtual hosts with a single instance of CF8. This
    will just be a few virtualhosts, not a large amount.
    After some difficulty with installations and the connector I
    was able to get CF8 running with apache. After setting up the
    virtualhosts I only could get to the CFIDE directory after adding
    it as an alias in the virtualhost config.
    If I try to pull up a test cfm file in a virtualhost site CF
    reports file not found. Yet it will pull up the administrator site.
    I assume thats because the /CFIDE path matches that in the main
    webserver root directory.
    Can I run a single instance of CF across apache and its
    virtualhosts? I know CF is running in the VirtualHosts as its an
    error screen from CF. However it just seems like CF is very
    confused when it comes to directory paths.

    I've been fighting the issue all day long. I was so glad to
    come across your post. Unfortunately, there was no answer attached.
    :-( I've figured it out in my install. Hopefully it will be of
    benefit to you.
    Turns out the problem was a permissions error. When
    Coldfusion couldn't read my virtualhost's directory it defaulted to
    the standard wwwroot. To fix it I did a "chmod -R a+rX
    /home/jason/public_html. Then I tried loading the page again and
    all was good.

  • Struggling with Apache Virtual Hosts

    Hi Folks,
    I'm having trouble getting Apache virtual hosts to function
    on my work PC.
    PHP works. The PHP info page loads fine. I just can't get any
    virtual hosts
    to function. Get "Cannot find server or DNS Error."
    The identical configuration on my home machine works fine.
    Some details
    below.
    Windows HOSTS file:
    127.0.0.1 localhost
    127.0.0.1 mvhms
    Apache 2.0 virtual host settings in httpd.conf file:
    # Use name-based virtual hosting.
    NameVirtualHost *:80
    # Edited by Phil 3/15/2007
    <VirtualHost *:80>
    DocumentRoot c:/htdocs
    ServerName localhost
    </VirtualHost>
    <VirtualHost *:80>
    DocumentRoot c:/htdocs/mvhms
    ServerName mvhms
    </VirtualHost>
    Any help greatly appreciated. Thanks.
    Phil
    Work PC is on a LAN
    Windows XP Pro
    Apache 2.0.59
    PHP 5.1.6
    Reference: PHP for Dreamweaver 8

    Hi Bev,
    I tried various local IP addresses with no luck.
    However, I do think it may be a local LAN or HOSTS file
    issue. If I remove
    the proper references from my home HOSTS file, I get the
    identical behavior
    as my work machine.
    Is there a Windows HOSTS file bypass or Group Policy setting
    that our IT
    department may have changed?
    Phil
    "bsoliman" <[email protected]> wrote in
    message
    news:etcioa$839$[email protected]..
    > You're welcome, Phil.
    >
    > Hmmm, in that case then I'm stumped too. If the exact
    same setup is
    > working
    > for you at home, then I have a sneaking suspicion that
    it has something to
    > do
    > with being on a LAN. Unfortunately, that's just a gut
    instinct and I
    > couldn't
    > tell you what the acutal problem might be. Hopefully
    someone else will
    > come
    > along that can help you out.
    >
    > This is a total shot in the dark: Why not try changing
    127.0.0.1 to your
    > machine's IP address on the LAN? I'm obviously grabbing
    at straws here,
    > but I
    > figure trying something (no matter how farfetched) is
    better than sitting
    > around feeling aggravated while waiting for help :-)
    >

  • Virtual hosting on leopard server

    Hello,
    I have a leopard server on which I want to have two sites served from the same ip address port combination.
    I am using the Server Admin tool bundled with OSX server to configure Apache.
    I have created two sites in Sites tab. One has the name "mydomain.org" and the other has the name "machinename".
    They are both configured to serve from the same local IP address.
    The name "mydomain.org" is served by DNS and the name "machinename" is configured on the client's /etc/hosts file.
    From what I know of virtual hosting, the web server receives a http header called 'Host' with the host name that was used on the browser, to select the files to serve. I have sniffed the http network packets from my client machine to the web server and seen this header set correctly to the hostname used on the browser.
    The problem is that just one site is being served to both names. I want to select the site according to name.
    What can I be doing wrong ?

    Done it the hard way.
    StuG

  • How to confiture virtual hosts with multiple domain names

    hello,
    I've read through some of the postings here on virtual hosts, but I thought I'd better solicit advice before I actually try some of the things I've read about.
    In a nutshell, I've purchased multiple domain names that I'd like to alias to a new site (currently it is just a subfolder in the main site directory) on my OS 10.3.x server. There is only the one main site configured right now on the box, so I know I need to set up a second "virtual site" pointing to the files in this subfolder to make it function as its own site.
    I've dabbled around with the sites settings in the GUI, but I'd probably be most comfortable setting all this up in the httpd.conf by hand if I could. But I'm weary of this because I know it might be better to use the GUI because of OS X Server's flavor of WebObjects and Apache (sigh).
    So, I have two main questions:
    1) How would I set up this second site using the GUI in server settings? Do I need to first move the subfolder out of the main folder before it can be designated its own site? Or can I just point to it in the GUI? Can I use one of my purchased domain names in the domain field?
    2) Currently, I have URL Forwarding set with my multiple domain names, but I'm thinking there might be a better way to do this? For SEO I'd rather use some type of redirect rather than being penalized by search engines for having what looks to be multiple domains pointing to the same site.I'm thinking I should create virtual sites for each domain name I've purchased with a hard redirect back to the main site?
    Any suggestions would be appreciated.
    Thanks
    G4 Mac OS X (10.3.9) 10.3.9 Server
    G4 Mac OS X (10.3.9) 10.3.9 Server

    thank you for your reply.
    > You can create each site as a new Site in Server
    Admin. When you do this you can choose any
    directory on disk as the document root for each
    site.This means you can move the sites' folders out of
    /Library/WebServer/Documents if you like - you could
    create /Library/WebServer/site1,
    /Library/WebServer/site2, etc. (or even be outside of
    /Library/WebServer if you want).
    so, are you are saying that I could designate one site to be
    /Library/WebServer/Documents/site1
    and another to be
    /Library/WebServer/Documents/site1/directory1
    even though directory1 is contained within site1's structure? I'm not advancing this as a good idea, necessarily. I'm just wondering if Apache would complain.
    > Each site should have the domain name set as per your
    registered domains. Apache will need this to
    determine the correct site to serve for each
    request.
    Well, after some additional research I'm thinking I'm missing a critical piece of the puzzle. That being access to the DNS host server that manages the context of my server. I have purchased domain names through an outside registrar that point to my site and I can create virtual hosts on my server, but I don't have the ability to add the new virtual host names into the DNS server that manages my box. If that makes sense. Or maybe I'm missing something?
    >
    I'm not sure why you're using URL forwarding at all.
    Without that piece of information it's impossible to
    tell you whether you should continue using them or
    not - in general there's no need to use URL
    forwarding if you have multiple Virtual Hosts setup,
    but it sounds like you have multiple hostnames
    pointing to the same content, so your needs may be
    different.
    I'm using forwarding for the reason I list above. I didn't purchase hosting with the registrar where I purchased my domain names, so they are parked on the registrar's name server with URL forwarding to my server. The DNS server that manages my box resides in a different location and I don't have the ability to add DNS entries pointing to virtual hosts that I want to set up. Am I stuck?
    G4 Mac OS X (10.3.9) 10.3.9 Server

  • How to configure Apache Virtual Hosts?

    Hi, I was wondering, how does configure Apache virtual hosts for Mac OS X Client 10.4.5? At this time, I have added
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /Library/WebServer/Documents/janus
    ServerName janus.php.test
    ErrorLog /private/var/log/httpd/janus.php.com-error_log
    CustomLog /private/var/log/httpd/janus.php.com-access_log common
    </VirtualHost>
    Finally, when I try to use the name in the browser, I get the following error message:
    Safari can’t find the server.
    Safari can’t open the page “http://janus.php.test/” because it can’t find the server “janus.php.test”.
    Well, I must go and thanks in advance.
    Peace,
    -Conrad

    If you want to use the fqdn you defined and can/do not want to register it as a Internet Domain you can add it to the hosts file in /etc/hosts if you are comfortable using terminal and the shell
    open a terminal
    and use the following commands
    cd /etc
    sudo vim hosts
    (you will be prompted for your password here, enter it and hit return)
    in vim scroll to the last line which will look like
    ::1 localhost
    type
    i
    (you are now in insert mode)
    type the following line
    192.168.0.15 janus.php.test
    (replace the ip address with the ip address of the host in question)
    hit Control-C
    type
    :w (vim will confirm in the last line)
    type
    :q
    you are back at the terminal
    test your new hosts file by typing
    ping janus.php.test
    Hope this helps
    Mike

  • Pop/Imap retrieving and redistribute in LAN with OsX Server

    It's possible to download mail accounts hosted in my isp and redistribut'em in my lan with OsX Server with it's own mail server?
    The scope is not to have a local server mail because we have ADSL and sometimes the line broke up...
    We prefere have mail hosted more securely in our external isp.
    But an internal mail server is a commodity very useful...
    Sorry if the questions is answered before...
    Thanks in advance.

    Maybe not easy but should work:
    http://www.macosxhints.com/article.php?story=2002052509542613
    man fetchmail

  • Help with OSX server mail setup

    Please if anyone can tell me what I am doing wrong, I would be very grateful.  I have a company with an externaly hosted website and an an internally hosted email (OSX server).  I have everything kind of working, but some things don't seem quite right.  I'll explain below:
    I have a purchased domain: mycompany.com hosted by godaddy.
    I am using Godaddy name servers: ns65.domaincontrol.com and ns66.domaincontrol.com
    The external godaddy DNS has an a name entry for my mail server: mail pointing to 123.123.123.123 (which is my companies external static IP address).
    There is also a null (@) a name record for my website hosting service (squarespace) pointing to 456.456.456.456
    There is a cName record www pointing to the squarespace domain "www.squarespace6.com"  (know this is unusual, but it is how squarespace asks this to be set up and does not work otherwise)
    There is an MX record with priority 10 and host name @ pointing to mail.mycompany.com
    I have a airport extreme router with the appropriate ports forwarded to the OSX server.
    The DNS servers on the router are pointed to the internal IP address of the OSX server
    I did not change the domain name on the router (mistake?) it is currently san.rr.com
    On the OSX server I have set up host name to be mycompany.comDNS is set up with primary zone being mycompany.com
    Primary Zone entries include
    nameserver = mycompany.com
    machine record host name is mycompany.com and the IP address is the internal IP address of the OSX server
    another machine record with host name "mail" and IP address is the internal IP address of the OSX server.
    Finally, there is a mail exchanger record with mail server "mail.mycompany.com" and priority 10
    There are 2 entries autocreated in the Reverse zone
    Mail is setup and running on the OSX server providing mail for "mail.mycompany.com"
    Users are setup with email address: [email protected] (note: without the mail subdomain - I think this is OK?)
    I am using self signed certificate.
    In my clients (windows Thunderbird, Mac Mail, iOS mail), the settings are for the incoming mail server host name to be "mail.mycompany.com" and the outgoing also to be "mail.mycompany.com"
    I woud have expected this to be imap.mycompany.com and smtp.mycompany.com respectively, but it doesn't work when I input these values and works with the former.  Have I set this up wrong??  imap seems to require SSL on port 993 and SMTP seems to require TLS on port 587.Outlook on PC gives me an error that after googling appears to be a problem with not recognizing a fuly qualified hostname form the SMTP client.  I see the fix, but wanted to know if that meant that my server didn't have a fully qualified host name and whether I should change that rather than just remove that restriction???
    The final problem is that my outgoing emails seem to be getting caught up in other people's spam filters too frequently.  What is the main reason for this?  Is it because I have set something up wrong and it brings up flags or is it simply because I am not a huge hosting company, or somethign else althogether?
    If you've gotten this far, big thanks!  If you can help me, even more thanks!

    Well, actually they are both getting caught up in spam filters and bounced back.  I actually realized that part of the problem is that I have a dynamic IP address, but it doesn't change.  Regardless, on the bounce back it looks like hotmail and other domains are rejecting email from my IP and recognize it as dynamic.  This was a test server that i would by physically taking to my business where there is a static business IP address (Cox).
    Sorry for the very long original message, but it seems that most people don't post enough information for the problem to be solved in their original posts and I was hoping to provide as much detail as possible.
    The other is the question of "are things set up right?"  It seems strange to me that both my outgoing and incoming servers are "mail.mycompany.com" and not imap.mycompany.com and smtp.mycompany.com and I wonder if this is going to cause me to have problems?
    Is it a problem that my email addresses are [email protected] and not [email protected]?
    Was I supposed to change the domain name on the router?
    Also is it going to be a problem that I am using a self signed certificate?

  • PlsqlCGIEnvironmentList for multiple apache virtual host

    a question that's still related to the following thread
    APEX Charts - Error XML Loading falied
    APEX Charts - Error XML Loading falied
    Hi,
    I have multiple apache virtual host for my apex instance. I have trouble loading the flash chart in my virtual hosts.
    I followed the instruction on the above link, it works.
    PlsqlCGIEnvironmentList HTTP_HOST=<my friendly URL>:80
    My question is what if I have multiple virtual hosts?
    Has anyone done this before?
    Thanks.
    -Joel

    Hi Jari,
    You mean these parameter
    PlsqlCGIEnvironmentList SERVER_NAME=external.server.com
    PlsqlCGIEnvironmentList SERVER_PORT=80
    How are those different from HTTP_HOST and what if I have multiple host (virtual)?
    Cheers,
    -Joel

  • SSL virtual host with external hardware accelerator/LBR

    Hi all,
    We have an existing non-ssl site configured - http://abc.company1.com
    We wish to add a new https site - https://xyz.company2.com - and terminate SSL at our hardware load balancer. But obviously keep our existing http site available.
    However, we can't seem to get this to work. We added a new site to the Web Cache, registered it with sso, updated httpd.conf and iasconfig.xml with the new virtual host and ran ptlconfig.
    Has anyone successfuly implemented a similar configuration?
    Is it possible to have a mixture of http and https virtual hosts with SSL termination at the LBR?
    Thanks in advance,
    Andy

    Yeah, in the app server admin guide for SSL configuration:
    17.3.5 Enabling SSL in Virtual Hosts
    You can use virtual hosts to deploy multiple Web sites on a single Oracle HTTP Server (for example, to make an application available over the HTTP protocol and the HTTPS protocol).
    The Oracle Application Server Single Sign-On Administrator's Guide, section titled "Configuring mod_osso with Virtual Hosts" contains instructions on configuring an SSL virtual host to be protected by mod_osso. You cannot use name-based virtual hosting. You must use IP-based or port-based virtual hosting.
    //This may be your problem - granted no symptoms were provided.

  • Mac Mini with OSX server still OK?

    HI All,
    I was going to purchase the mac mini that was geared up to work best with OSX server however that option is now no longer available and the mac mini's have downgraded slightly in terms of quadcore processors and 2tb harddrives.
    We run a small design studio, file sharing is becoming a large hinderance on workflow and I thought OSX server sounded like a good solution for someone with little knowledge of the area. We have four imacs, and three macbooks. Our team is growing fairly quick and that number should double next year.
    Any ideas would be much appreciated.
    Thanks,

    Just get the latest mac mini, add some external storage with a Thunderbolt 2 connection and that setup will work great for filesharing.
    You will get gigabit network speeds and since it's Thunderbolt 2 the mac mini will have no problem to serve those files across the network.
    Make sure you get external storage with a decent RAID setup like a Promise Pegasus for instance, and invest in a good back-up solution.
    Then clone your mac mini OSX Server setup daily towards the RAID and you're good to go!
    Get a Mac Mini with an SSD or Fusion Drive and 16GB of RAM. That'll keep you going for the next couple of years easy!
    Goodluck!
    Jeffrey

  • Help needed with OSX Server 10.5.8

    We're running a headless Xserve (RackMac3,1) with OSX Server 10.5.8 that did its job flawlessly.
    Now we want to update the Perl software from 5.8.6 to 5.20.0 or newer. After downloading the suitable version from CPAN we tried to install, but get the following msg:
    Uh-oh, the C compiler 'cc' doesn't seem to be working.
    You need to find a working C compiler.
    Either (purchase and) install the C compiler supplied by your OS vendor,
    or for a free C compiler try http://gcc.gnu.org/
    I cannot continue any further, aborting.
    Is there a way to install the missing tools remotely via the command line (SSH)? A step-by-step recipe would be most welcome.
    - Harald -

    RackMac3,1 is PPC/G5 processor so you are not going to have an easy time with this. Perl 5.2.20 is bleeding edge (OS X 10.10.3 comes with v5.16.3).
    I would leave Apple's installation of Perl, etc. on the server strictly alone and install MacPorts:
         The MacPorts Project -- Home
    and work from there. You aren't likely to get a step-by-step recipe because its not an exercise a rational person would chose to spend time on.
    Have you considered rewriting whatever features in your code require Perl 5.2.20 than to upgrade your server? Or buy a new server, you could probably pick up a Mini for about $200.
    C.

  • SSL with virtual hosting in Weblogic Server 5.1(WLS5.1)

    Hello,
    I am tasked with implementing a virtual hosting situation that must
    use SSL. It goes like this: https://www.aaa.com, https://www.bbb.com
    and https://www.ccc.com all having separate IPs. These URLs must
    forward the request to the same WebLogic Server instance. The problem
    is each URL must have its own certificate while WLS 5.1 only uses one
    certificate per instance.
    I was thinking about using a proxy server such that all three Web
    servers that would host the URLs would be sent to a proxy server which
    would redirect to the WLS 5.1 instance.
    My questions are, would this be feasible using WLS 5.1 as the Web
    Server and again WLS as the App Server? How secure is this
    arrangement? Is it preferable to use another vendor's software as the
    WebServer(IPlanet, Apache)

    Hi Andy,
    I think a good approach for you would be to use a proxy server --
    browser -> proxy that supports virtual hosting -> WebLogic
    Use a proxy which supports virtual hosting, and which can have a separate
    certificate bound to each virtual host.
    That way you can do SSL between the browser and the proxy, and you can
    have the proxy do cleartext to WebLogic.
    This situation gets around WebLogic's limitation of allowing only one
    certificate per instance of the server.
    You could also use 5.1 as the proxy in the following manner:
    Run 3 instances of Weblogic, each as a proxy server, each bound to a
    different IP address and DNS name, having its own certificate --
    one instance for aaa.com, another for bbb.com, and a third for ccc.com
    Then have each of these three instances of WebLogic proxy to your "app
    server" instance of WebLogic on the backend.
    Hope this makes sense.
    Joe Jerry
    Andy Walker wrote:
    Hello,
    I am tasked with implementing a virtual hosting situation that must
    use SSL. It goes like this: https://www.aaa.com, https://www.bbb.com
    and https://www.ccc.com all having separate IPs. These URLs must
    forward the request to the same WebLogic Server instance. The problem
    is each URL must have its own certificate while WLS 5.1 only uses one
    certificate per instance.
    I was thinking about using a proxy server such that all three Web
    servers that would host the URLs would be sent to a proxy server which
    would redirect to the WLS 5.1 instance.
    My questions are, would this be feasible using WLS 5.1 as the Web
    Server and again WLS as the App Server? How secure is this
    arrangement? Is it preferable to use another vendor's software as the
    WebServer(IPlanet, Apache)

  • Website issue with osx server and hosting

    so i had a website hosted from my osx server and i had bought the domain name from godaddy it worked great but i desided to instead of hosting it on my osx server to just host it on  godaddy so i turned to server off and added the domain to my godaddy account hosting and now it works but one problem all computers can veiw the website but mine. i think it has somthing to do with the fact that my mac was the one hosting it. but if i go to my browser and go to my wesite i get a error but than i go to any other computer and it works great help please

    A couple ideas
    check our /etc/hosts file, you might have an entry for your domain.
    sudo pico /etc/hosts
         do you see any entries for your domain? If so:
         edit the file by navigating with the arrow keys, delete the line
         with your domain. Hit ctrl-x when done (enter 'y' to save the change)
    Clear your DNS cache
         dscacheutil -flushcache
    Try a different DNS server, go into your network settings (In System Preferences)
    Go to Ethernet or Wifi (whichever you are using), click Advanced and under the DNS tab enter:
         8.8.8.8
    Make sure no entries are ABOVE it.
    If none of this works, send the results of these commands:
         cat /etc/hosts
         cat /etc/resolv.conf
         dig +short mydomain.com   (replace with your domain)
    The results of these should point us in the right direction.
    Jeff

  • Serving virtual hosts with different instance of weblogic6.1

    We are using the apache plugin and weblogic6.1. Is it possible to send the request
    for each virtual host to a different instance of weblogic6.1 instance? If so how?
    For ex in my httpd.conf I want to say
    <VirtualHost abc.xyz.xom>
    WebLogicHost 192.168.10.20
    WebLogicPort 8001
    </VirtualHost>
    <VirtualHost cde.xyz.com>
    WebLogicHost 192.168.10.20
    WebLogicPort 8002
    </VirtualHost>
    Thanks in Advance
    Viren

    We have two virtual hosts for our SSO server.
    Intranet users use
    Name: sso.parlinkom.gv.at
    Address: 161.110.13.4
    but internet user use
    Name: clsso.parlinkom.gv.at
    Address: 161.110.1.17
    Yes, we have one portal.
    Thank you in advance
    Wolfgang

Maybe you are looking for

  • Iphoto crashes w/ error message....

    I'm runing iPhoto 4.0.3 Today I loaded some photos off a friend's digital camera. After importing the photos, opening the app, adjusting/deleting things I quit the application. Later, when I re-opened application, it started to show my library and th

  • Two problems with my Z2

    These two have persisted for several firmware updates. I am currently on 23.0.1.A.0.167. The album app flickr part, says "Could not authenticate" The messaging app, when I choose to respond with a phonecall (upper right corner button), offers Phone a

  • Transfer of Campaigns to R/3 PS via Middleware

    I'm trying to turn on integration via middleware between Campaign Management and SAP R/3 Project System. Do you know about SAP documentacion for configuration steps?. I can't find anything in help SAP CRM and Best Practice. Thanks, Lyda

  • When I minimize mt pages they go to desktop instead of going down to the bottom taskbar,how can i change this?

    I then have to minimize this stupid and possibly the worst version of firefox to get back to my previous programs or pages.This version makes IE shine!

  • Form gets slow while filling data in form.

    Hello All, In my form there are ten pages, when I fill data in the form it takes more time for each and every entry. Why this happens? What should I have to do to overcome this issue. Regards, Arun