IMac G5 as web server

Hi,
I have an iMac G5 that's sitting in a box because I now have an Intel-based iMac ... I'm thinking of making the G5 into a Web server. Any suggestions on how I can make this happen? We have the typical, consumer-grade DSL service at our home ...
Thanks,
Matt

In very simple terms...
You would need a router. Connect both your iMacs to the router. Configure the router to map port 80 to the iMac G5.
Use one of many tools (iWeb, Freeway) to create your web site.
On the iMac G5 enable Web Sharing in the Sharing preference pane.

Similar Messages

  • How do I make my imac into a web server it is nearly brand new and uses OSX 10.8.4

    How do I make my imac into a web server it is nearly brand new and uses OSX 10.8.4, if someone to point me towards instructions it would be most helpful.

    http://www.coolestguyplanettech.com/downtown/install-and-configure-apache-mysql- php-and-phpmyadmin-osx-108-mountain-lion
    Regards.

  • Make Imac A Home Web Server

    Hello,
    Is there any sites that may explain on how to make my Imac into a home web server. I need to add mysql, php5 and apache. Any hlp or guidence would be greatly appreciated. My go is to work on my sites locally and not live on their servers.
    Thanks JR

    Hi, no from the internet, as your isp block the port.
    Can you ask your ISP to unblock it ? If a fee apply you could ask your boss to pay for it.
    Regards, Philippe

  • Imac Web Server

    Hello,
    Is there a link for a tutorial to help me turn my Intel Imac into a Web Server. Need to have Apache, (which I beleive it already has), PHP and any other software to make into a Web Server.
    Thanks JR

    In very simple terms...
    You would need a router. Connect both your iMacs to the router. Configure the router to map port 80 to the iMac G5.
    Use one of many tools (iWeb, Freeway) to create your web site.
    On the iMac G5 enable Web Sharing in the Sharing preference pane.

  • Use Imac as Web Server in A Windows Environment

    I would like to use an Imac to host some sites over my companies intranet. My question is how can it be done. I dont need the mac to file share or anything like that, just run as a ftp and web server. Any suggestions?

    Any reason why, assuming you have Windows 2000/2003 Server?
    At any rate, this subject doesn't have anything to do with Windows Compatibility as there isn't any compatibility issue here.
    Just turn on the Web Serving option in the Sharing control panel and Apache will start up.

  • My iPhone gets a "web server proxy error" connecting to wifi @ home

    Ever since installing Comcast Xfinity with Motorola SB6121 and Apple Extreme 5th generation, my iPhone 4 gets a web server proxy error or similar message for any apps seeking to go online.  My iPod Touch 3rd generation works as does my MacBook Pro.
    I've reset the router, harangued Comcast (no help - it's your phone, sir), rebooted the iPhone, checked all my settings (VPN - what's that? it's not connected), Proxy in the VPN settings is set to off. The phone will show the signal and it will check Apple Mail but Safari, Google APP anything needing web access will either hang or give the proxy error message.  Apple Customer Care said call Comcast, Comcast said call Apple & I'm surprised to find little help on the web.
    Here's what I found to work on a MacForum sight from 2 years ago.
    1.
    Settings->WiFi->under choose a network, click the blue arrow (on the right of the network nameyou use)->DHCP
         *now check the IP address with the one on your iPod Touch or computer to see if they are in sequence
         *scroll down to HTTP Proxy & make sure it is off
         -> renew lease may work
    It was the making sure the IP address was correct/in sequence which I moved to the STATIC tab and input all the same information (use a screen shot to remember it - home button and on/off button at the same time, it will store in your pictures folder) and give that a shot.
    The problem appears to be where multiple machines or devices are using the same router. The iPhone 3GS assigned an IP Address in order of preference, therefore 192.175.1.1 and then 192.175.1.2 etc. The iPhone 4 will assign a strange IP address which the router will not accept. You therefore need to look at the other devices linked and see what number is next in the sequence. Then go to static on the top tab and type in the IP adress manually followed by the Subnet mask, router and DNS details. Once you have completed the info press the DHCP button and HTTP Proxy as off - this is important.
    2.
    This is how i fixed the wifi problem...(i used my mac)
    So basicly I created a new WiFi hotspot on my iMac, then I connected my iphone to it and it WORKS!
    1. open System Preferences (Apple -> System Preferences) and click Sharing.
    2. select Internet Sharing at the left side.
    3. Then check off AirPort.
    4. Then creat a newtwork name, and password
    5. VOILA! look at the Wifi connections on your iPhone and it should be there!
    (IF YOU HAD ANY PROBLEMS GO TO THIS LINK..
    http://maketecheasier.com/create-wif...s-x/2009/10/20
    THIS SITE SHOWS YOU HOW TO SET IT UP)
    3.
    reset Network
    Same problem, but none of the above worked for me. Finally went to Settings/ General/ Reset/ Reset network settings. Saw this in a different thread.
    Hope these help.
    Cheers,
    cs

    This has solved loads of people who have this issue and have used an alternate DNS setting.  Below are instructions for both iPhone OTA and on you Mac
    If you are getting the error message "Unable to check for update" when you try an OTA (over the air update)
    Change DNS Servers
    Settings -> Wi-Fi
    Click the blue arrow on your connected network
    Delete everything in DNS and replace it with 208.67.222.222, 208.67.220.220
    Try again
    If this works, you will probably want to remove the WiFi network using "Forget This Network" and then reconnect to it to get your original DNS servers back. Alternatively, make a note of the original DNS servers before deleting them and replace it after you are done.
    If you are getting the error message "Unable to check for update" when you try through iTunes
    On your Mac
    Choose Apple menu > System Preferences, and then click Network.
    Select the network connection service you want to use (such as Wi-Fi or Ethernet, unless you named it something else) from the list, and then click Advanced.
    Click DNS, and then click Add at the bottom of the DNS Servers list. Enter the IPv4 address for the DNS server.
    You can use OpenDNS
    208.67.222.222
    208.67.220.220
    or
    You can Google Public DNS if you want
    8.8.8.8
    8.8.4.4
    I have actually repointed my routers DNS so all my devices now point to OpenDNS servers

  • Using the Embedded Web Server To Connect A Wireless Printer To Your Network

    AKA:No Wireless Setup Wizard Button, which would be way easier.
    The Prelude
    Some entry level printers do not offer a 'Wireless Setup Wizard' button, or a menu option that is accessible from the front of the printer. Printers that do not offer this luxury option, can still be easily configured to communicate to your router if you have a Mac or Windows PC.
    You still may have an easy option to get your network settings configured in your printer, if your router supports WPS. I personally do not like to use WPS as it can bring its own frustrations. WPS is not within the scope of this document.
    This document is geared towards the last available option, and in my opinion the best option. It can however be the most involved option. I am referring to using the Embedded Web Server (EWS). Most modern network capable HP Printers have a setting page that can be accessed from a web browser. The process is rather simple, but many confusing hiccups can occur, and that is what I hope to prepare you for.  There will be variances for different printers. I am using my experience with consumer printers that have been around the last few years.
    First, do not get overexcited about this document: Accessing the HP Embedded Web Server. Don't get me wrong, it is a great document, it's just that the instructions, while accurate, will not work until your printer is configured to connect to your network first. We will revisit this later however.
    Seatbelts Please
    The first thing we need to do, is have the printer broadcast its own network, sometimes referred to as AdHoc, sometimes referred to as Auto Wireless Connect. To do this, you need to navigate the menu system of the printer, and find the option to reset the network settings, network defaults or something similar. If your printer has the Wireless Direct feature you won't need to reset the network settings, but this is a perfect time to make sure Wireless Direct is turned on. If you aren't using Wireless Direct, the timer starts. Generally speaking, for the next two hours, the printer will broadcast an 'HP Setup' network, or have some variation of the printers name listed in available wireless networks. Regardless you should have plenty of time, if you read it all first and then went throught the steps.
    *Preparation:
    Here is where you want to use your favorite device, one capable of seeing 2.4ghz networks. Android phone, Apple iPad, Chromebook, Windows or Mac Notebook that you decided not to install the printer software on. Any of these devices will work. Apple iOS devices required a bit of coddling, as Safari doesn't work well with the EWS Wireless Setup Wizard.
    Do you know your network SSID? What about the passphrase, passkey or whatever the security word is called?
    If you didn't set it up, and just started using it when the internet guy installed it, then there is probably a sticker on the router with that information. If you still can't find it, call your ISP, router manufacturer or favorite family member for help to find that information (If you use a family member, remember to buy them something nice on the next gift giving holiday in your region).
    *Apple iOS specific, device preparation:
    1. You will save yourself a lot of frustration by downloading the Chrome Browser for iOS now. Go ahead, I will wait...
    If you are installing Chrome for the first time, when it completes the install, open it, and get passed the greeting and tutorial before continuing.
    2. You need to forget your home network connection when you are done with step 1. Just hold down on your home network in the wireless networks list, and 'Forget' the connection (or find the arrow that leads to the same option). If you do not take this step, it will reconnect to the home network once you run the Wireless Setup Wizard, causing you to have to back track.
    3. Be aware, when you connect to your printer's network, that it may appear to not connect (ie. spinning wheel, no confirmation) to the printer. This is a known behavior. Just close the wireless settings, and proceed as normal.
    Begin The Journey
    Open up the wireless section of your device and look in the list of available networks and tell it to connect to the HP printer network. The SSID will usually start with HP, and may have the printer model or the word SETUP in the name. Once you are connected (see "Apple iOS specific, device preparation #3 if you are using iOS), it is time to open your browser, preferably the Chrome browser when at all possible. In the address bar type 192.168.223.1 and press go or hit enter. I use the colloquialism 'hit' when I just mean 'press' again, sorry for the redudancy.
    If all is well, you should see a web page that should refer to your printer. Now is the time to find the 'Wireless Setup Wizard' button. Most printers should have it here on the main page of the EWS. Just take your time, it may not be obvious at first. Once you press it, the setup process will begin. Follow the instructions. It should see a list of detected wireless networks, and you can select your home network. Then if it requires a password, it will prompt for you to enter it. At the end of the Wizard, it might say something about not being able to test it, or show a page cannot be displayed screen. This is OK. This means the printer is now talking to your router and not your device in your hand.
    Proof Of Concept
    You can now tell your device to scan and connect back to your normal home network. Once you connect, you can verify if you can see your printer. Keep in mind, with dual band routers, that the printers will typically only be visible on the 2.4GHZ network, so your device should also connect to that network as well for testing. Once connected, now we need to find out what IP Address the printer has. Remember the document I started with “Accessing the HP Embedded Web Server”. It now is relevant, and you can complete those instructions to make sure you can see your printer on the same network. If your device can enter the printers EWS with its new IP, then you have officially connected your printer to your network. Also your printers wireless light should be solid, indicating communication.
    If It Worked
    Now the fun begins. If you are setting up ePrint, and if there is no option to configure ePrint from the front panel, find the Web Services tab, and proceed with that process. If you are setting it up to a Chomebook, you still need to setup ePrint (if it is an ePrinter) before configuring Cloudprint... but that's another document.
    I hope I have not missed any small detail that pertains to your configuration that made this hard to follow. Any comments would be welcomed to improve this for future use.
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

    That printer also has a USB port why don't you connect it using that port?
    If you insist on using ethernet, Mac OS X can create two network connections at the same time. On the iMac you can configure one of the network connections to be wireless and the other to be wired using the ethernet port.
    Since you already have a wireless network configured and connecting to your AirPort Extreme for Internet access all you need to do is plug in an ethernet cable from your iMac directly to your printer and configure them to use self-assigned IP addresses. Self-assigned IP addresses take the form of 169.xxx.xxx.xxx and are used in this configuration to avoid any conflicts with your other network. You have to configure the iMac and the printer to each have a unique IP address in the self-assigned range, just make each of the last group of numbers in the IP address different, and then the iMac should be able to print to the printer.
    Note that when you configure the Imac and printer this way no other network devices will be able to print

  • How do I get Apache web server working ...

    How do I get Apache web server working on my MacBook Pro, which is running Leopard 10.5.8?
    When I enter 'http://localhost/~username/' (without the quote marks) as a URL in my Firefox browser on the MacBook, I do not see any result at all(!). I do have Web Sharing on in System Preferences on that machine. But the browser does nothing whatever for that URL ...
    On my other computer, an iMac running Leopard 10.5.8, when I enter 'http://localhost/~username/' I see the default "Your Website Here" page. That same default page is in fact the index.html file I expect to see on the MacBook Pro. But it isn't getting invoked for some reason. Nothing is happening ...
    When on the iMac I try 'http://10.0.1.18/~username/' (10.0.1.18 is the local IP address I see under 'Web Sharing: On' on the MacBook) I get "Unable to connect: Firefox can't establish a connection to the server at 10.0.1.18."
    When on the MacBook I try 'http://10.0.1.5/~username/' (10.0.1.5 is the local IP address I see under 'Web Sharing: On' on the MacBook) I see the default "Your Website Here" page.
    It is the same on my iPhone: Using the same local IP addresses and usernames, Safari can see the index.html page on my iMac but not on my MacBook.
    It looks as if Apache is not working on the MacBook, while on the iMac it works fine.
    On the MacBook I can see (after I use 'defaults write com.apple.finder AppleShowAllFiles TRUE' in Terminal) a /private/etc/apache2/ directory with what look to be(?) the usual contents. So it looks like Apache is duly installed, as far as I can tell.
    On the MacBook I don't see a file at /private/var/log/apache2/error_log, which is the location for 'ErrorLog' given in the httpd.conf file.
    That about exhausts my understanding of how to get a handle on my problem.
    Any advice or suggestions from those who have more expertise with Apache will be much appreciated ...

    Okai, so we are getting somewhere, but not quit there yet :-)
    I opened the Kenneth.conf file using the command: vi Kenneth.conf
    This is what it said:
    <Directory "/Users/Kenneth/Sites/">
    Options Indexes Multiviews
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    </Directory>
    "Kenneth.conf" [readonly] 6L, 139C
    I therefore changed the AllowOverride from AuthConfig Limit to None, which was the only difference from what you posted above. Something did change, when I tried to open XAMPP it prompted me a password, but Apache still wont start :-/

  • Local Web Server No Longer Working In ML

    Hello,
    Previous to updating to Mountain Lion, I had my Imac set as a local web server and everything worked fine. After updating to ML, I no longer have local web server access. Also seems that my /etc/apache2/users/USERNAME.conf is gone? Do I need to reset all the files I configured prior to installing ML?
    Thanks JR

    I created a new ect/apache2/users/currentuser.conf with
    <Directory "/Users/username/Sites/">
          Options Indexes MultiViews
          AllowOverride All
          Order allow,deny
          Allow from all
    </Directory>
    But now when I try to view a current site on the Mac, it just lists out the php code and not the page?
    Thanks JR

  • Starting a Web Server

    Ok, here it goes... What I would like to do is turn a busted up Imac into a self contained home web server. My main computer is a PowerMac G3 B&W running OS9 and my frankenstien is an old G3 Imac with OS9 also that I'm going to strip down to just a motherboard, drives, and power supply. I am going to network this all together so that my PowerMac can be in the loop but out of it. I did what little research I could on Classic web file servers but came up with how to do this with SE30s and 128's and a handful of clippings from web pages. There is older Apple software that does all of this but I am unsure about the setup and all where to get it and what it is. Im not looking to host a superduper website just some stuff and grainy pics with basic web page features, email submit maybe and a special area login for those special folks I know... Im not guarding Fort Knox just my PowerMac and the login. I know upgrading would be easier but OS 9 is wonderfully simple and the software is bargain priced..... and I like it to top it off. Any suggestions, sites, hopes, fears, ideas would be helpful towards my venture.
    Thank You!

    Hi,
    The built-in Web Sharing control panel should be useful for certain applications (for example, as in KB article HT2973).
    Regarding third-party options, the now free NetPresenz could perhaps be of interest to you. See also this short article about MacHTTP.
    Jan

  • Permission to access iMac.local/~MyUser web pages

    I have an iMac with a client configuration and am running Lion OS X.
    I've turned on the Web Server to share web pages. I can successfully accesss pages on the main web page site: iMac.local, located at Library/WebServer/Documents. I cannot accesss pages from my own user location: iMac./local/~Ron, located at Ron/Sites directory. I get a 403 Forbidden message that says:
    Forbidden
    You don't have permission to access /~Ron/phpinfo on this server.
    The file should send back a phpinfo() table but the sample index.html file gives the same Forbidden message.
    Can someone please tell me how to get this to work?
    Thanks,
    Ron R.

    Hello Thomas,
    Thanks for your reply.
    Yes, PHP is enabled. I can get the phpinfo table just fine from the Mac.local location but not from my own Mac.local/~Ron location. That's the problem I'm trying to resolve.
    You're right, I forgot the .php extention in my previous message. But when I use it, it still does not give me access to the file. I can't access the index.html "Welcome" file either. Seems like an access problem unrelated to PHP.
    Message received:
    You don't have permission to access /~Ron/phpinfo.php on this server.
    I'm jealous that others get this to work so easily. I'm a newcomer to the MAC and am paying my dues...
    Any other suggestions?
    Thank you,
    Ron R.

  • 10.4 web server was hacked - how do I find out how this happened?

    I am running the most updated 10.4 OSX Server software on a computer (an iMac 800 which doesn't permit 10.5 Server to install!), and two days ago I noticed that all of my web pages for only one of the sites served by this computer had been rewritten to display all kinds of vulgar garbage after a nicely written banner that said "you've been hacked". In general, my network has DSL for internet with a static IP, and the router then forwards various ports to this computer for the three services that the computer provides: Web, AFP, Mail. Ports are open in the router to permit FTP, Server Admin and Workgroup server login as well, and there is only one admin account on this computer among the other 9 basic user accounts.
    The Web server supports multiple virtual domains for this single IP address, each of which has a separate web documents folder. Only the main site was hacked - other folders were not touched.
    I have replaced all of the files so my web site now displays the proper information, but I am interested in discovering how this occurred. I have no guest "write" access to the folders on this system that I know about.
    What can I look for to determine how this occurred, and hopefully prevent its recurrence? Thank you for any advice!

    Might want to increase your degree of paranoia by an order of magnitude or three here. With ftp and with the other stated ports open to the 'net, it's more of a wonder that the server didn't get hacked sooner. It's not really paranoia if the folks really are out to get you, and -- based on my server logs -- they are.
    A user with an unauthorized account on your box means your security has been completely breached; that your server has been rooted, in the vernacular.
    Getting rooted means you'll probably want to reinstall everything other than your application data from distro, from bare iron and Mac OS X Server on up. You'll want to pull what you can of that from your pre-breach backups and data archives. If you don't reinstall from known-good distros, who knows what else has been left around as a surprise or as a backdoor.
    With a rooted server, that could be anywhere. Worse, that rooted server can be used as a foothold to gain further access, such as via no-password ssh or telnet or simply sniffing local telnet traffic.
    I'd also look to upgrade the versions of php and any web-facing applications to the most current available versions, as attacks against many of those web-facing packages are active and underway.
    And I'd change passwords on all the other servers and devices on the LAN.

  • Apache web server and asp

    Hi everyone!
    I am new to macs and am trying to learn asp programming. I have been designing web pages for a while, but I haven't gotten into real programming. I usually use Dreamweaver to design with. I have an ibook and an intel imac.
    On either of these can I write asp scripts using vbsript and execute them? Also, if I write the asp scripts for the server where do they go? And then on the web page that is supposed to connect to the server, does it matter where I put it?
    I know I'm asking a lot. But can anyone help me?
    Thank you I really apprecite any help.

    ASP pages typically require that your web server be IIS running on Windows. Apache cannot serve ASP pages by default. There is some information in the Wikipedia article that can point you to ways you can set up Apache to serve ASP pages. Personally, I would stick to a Windows server if you're going to be doing ASP pages, and I would use Java (JSP, servlets, etc.) or Perl if you want to serve your pages on Apache on OS X or Unix/Linux.

  • Setting up a web server

    Hi,
    I have four or five domains registered and now I’m paying for web hosting (not much, but…). For many months now, I’m reconsidering to set up my own web server (I have DSL connection 24/7 so…).
    One idea was to go with MS 2003 SERVER on some older PC I have, but since I’m not some expert (more or less dummy) for this things… gone down the toilet .
    Then I bought an iMac (the best investment in past few years regarding computers) and on apple.com site I saw OS X SERVER software and more I was reading this more seemed that this is something for me, for my idea to set up a server.
    Now I bought on eBay used G4 Mac Mini and I will install a OS X SERVER (please, don’t tell me that I’m trying to put a BMW engine into SMART… I know that and I hope that will somehow work… if not, there is still eBay to sell everything and there is still a toilet for my idea:-( ). However, the pages I own are not some crucial things for state security, but still I need PHP5 and MySQL (as far as I know OSX have this, right?).
    My questions are:
    To set up web server I need a DNS (like: nameserver.mydomain.com) otherwise nothing, right?
    Do I have to register somewhere my own DNS like domains and to pay annually for this (any suggestion where)?
    Hosting my other web sites (with other domains) on OSX will not be a problem. I suppose that OSX can do this?
    If I have nameserver.mydomain1.com, will be a problem to set up an email server/account for mydomain2.com or I have to set up a DNS also for this second domain (will be on same server)?
    I’m sorry, if my questions are stupid (on the other hand, someone said that there are no stupid questions, the answers can be stupid), but I’m really not familiar with this things.
    Many thanks in advance and excuse me for my English,
    M

    Faganel, did you ever find a "Leopard Server as a Web-Server - Setup for Dummies" kind of guide or article?
    If so, I'd really like answers and tips, to the same kind of questions you have.
    I don't think this is the best forum, to ask for newbie-style advice. The people here are hard-working system-admins, who does web-server setups for a living, and they really don't have time, to answer questions like ours.
    I've done dozens of Windows 2000 web-server setups at work, and the funny thing is, I could probably have helped you, had you gone with the Windows 2003 Server
    However I'm trying to get some Xserves into our server room at work, and am evaluating Leopard Server here at home, and would like to do the same thing as you - Setup a Leo web-server with dyn-dns or something like that.
    But because my knowledge is Windows, and because I've always worked with our own DNS and IP's, I'm having trouble getting my Leopard web-server here at home, to serve to the internet.
    I can get it to serve perfectly to my own sub-net, but when I try to access it from the outside, I get nothing. I've setup my DSL-router to point web-traffic to the Leopard web-servers IP, but still get nothing.
    However, I've just started, and I'm sure I'll get it to work, but some pointers would be really cool - obviously it can be done, just need to get my head around the fact, that I'm home and dealing with DSL and DSL-routers, and not the Ciscos and SonicWalls I'm used to at work
    I must say though, that Leopard Server is an amazing product, and I'm positive well need to start buying Xserves from now on at work. The time saved setting them up and administering them, is HUGE when compared to the Win2000 boxes I have to fight every day at work
    I also think Apple could make a very cool home-server, if they wanted too - I have no idea if it would sell, but Leo Server is almost so easy to setup now, that most people could get the hang of it ...
    Anyways, if you or someone else has a guide, to getting it to serve webpages behind a DSL-router with a static IP, I'd be more than grateful - I'm sure this would impress my boss enough, that I'd get a handsome budget to explore Leopard Server some more - I't just awesome from a SysAdmins point of view.

  • How do I use Sun Web Server 7.0u1 reverse proxy to change public URLs?

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)
    for hosting some of the public resource and reverse-proxying other parts
    of the URI namespace from other backend servers (content, application
    and other types of servers).
    So far every type of backend server served a unique part of the namespace
    and there was no collision of names, and the backend resources were
    published in a one-to-one manner. That is, a backend resource like, say,
    http://appserver:8080/content/page.html would be published in the internet
    as http://www.publicsite.com/content/page.html
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.
    Another quest, possibly related in solution, was to make a tidy url for the
    first page the user opens of the site. That is, in the current solution when
    a visitor types the url "www.publicsite.com" in his or her browser, our web
    server returns an HTTP-302 redirect to the actual first page URL, so the
    browser sends a second request (and changes the URL in its location bar).
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    So far I found that I can't solve these problems. I believe these problems
    share a solution because it relies on ability to control the actual URI strings
    requested by Sun Web Server from backend servers.
    Some details follow, now:
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    [04/Mar/2009:21:45:34] finest (25095) www.publicsite.com: for host xx.xx.xx.83
    trying to GET /content/MainPage.html while trying to GET /test, func_exec reports:
    fn="service-passthrough" rewrite-host="true" rewrite-location="true"
    servers="http://10.16.2.127:8080" Directive="Service" DaemonPool="2b1348"
    returned 0 (REQ_PROCEED)My obj.conf file currently has simple clauses like this:
    # this causes /content/* to be taken from another (backend) server
    NameTrans fn="assign-name" from="/content" name="content-test" nostat="/content"
    # this causes requests to site root to be HTTP-redirected to a certain page URI
    <If $uri =~ '^/$'>
        NameTrans fn="redirect"
            url="http://www.publicsite.com/content/MainPage.html"
    </If>
    <Object name="content-test">
    ### This maps http://public/content/* to http://10.16.2.127:8080/content/*
    ### Somehow the desired solution should instead map http://public/data/* to http://10.16.2.127:8080/content/*
        Service fn="service-passthrough" rewrite-host="true" rewrite-location="true" servers="http://10.16.2.127:8080"
        Service fn="set-variable" set-srvhdrs="host=www.publicsite.com:80"
    </Object>
    I have also tried "restart"ing the request like this:
        NameTrans fn="restart" uri="/data"or desperately trying to set the new request uri like this:
        Service fn="set-variable"  uri="/magnoliaPublic/Main.html"Thanks for any ideas (including a statement whether this can be done at all
    in some version of Sun Web Server 7.0 or its opensourced siblings) ;)
    //Jim

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)please plan on installing the latest service pack - 7.0 Update 4. these updates addresses potentially critical bug fixes.
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.> now, if all the resources are under say /data, then how will you know which pages need to be sent to which back end resources. i guess, you probably meant to check for /data/page.html should go to <back-end>/content/page.html
    yes, you could do something like
    - edit your corresponding obj.conf (<hostname>-obj.conf or obj.conf depending on your configuration)
    <Object name=¨default¨>
    <If $uri = ¨/page/¨>
    #move this nametrans SAF (for map directive - which is for reverse proxy within <if> clause)
    NameTrans.. fn=map
    </If
    </Object>
    and you could do https-<hostname>/bin/reconfig (dynamic reconfiguration) to check out if this is what you wanted. also, you might want to move config/server.xml <log-level> to finest and do your configuration . this way, you would get enough information on what is going on within your server logs.
    finally,when you are satisfied, you might have to run the following command to make your manual change into admin config repository.
    <install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    you might want to check out this for more info on how you could use <if> else condition to handle your requirement.
    http://docs.sun.com/app/docs/doc/820-6599/gdaer?a=view
    finally, you might want to refer to this doc - which explains on ws7 request processing overview. this should provide you with some pointers as to what these different directives mean
    http://docs.sun.com/app/docs/doc/820-6599/gbysz?a=view
    >
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    please check out the rewrite / restart SAF. this should help you.
    http://docs.sun.com/app/docs/doc/820-6599/gdada?a=view
    pl. understand that - like with more web servers - ordering of directives is very important within obj.conf. so, you might want to make sure that you verify the obj.conf directive ordering is what you want it to do..
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    now, you are in the totally wrong direction. web server 7 includes a highly integrated reverse proxy solution compared to 6.1. unlike 6.1, you don´t have to download a separate plugin . however, you will need to manually migrate your 6.1 based reverse proxy settings into 7.0. please check out this blog link on how to set up a reverse proxy
    http://blogs.sun.com/amit/entry/setting_up_a_reverse_proxy
    feel free to post to us if you need any futher help
    you are probably better off - starting fresh
    - install ws7u4
    - use gui or CLI to create a reverse proxy and map one on one - say content
    http://docs.sun.com/app/docs/doc/820-6601/create-reverse-proxy-1?a=view
    if you don´t plan on using ws7 integrated web container (ability to process jsp/servlet), then you could disable java support as well. this should reduce your server memory footprint
    <install-root>/bin/wadm disable-java user=admin config=<hostname>
    <install-root>/bin/wadm create-reverse-proxy user=admin uri-prefix=/content server=<http://your back end server/ config=<hostname> --vs=<hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    now, you can check out the regular express processing and <if> syntax from our docs and try it out within <https-<hostname>/config/<hostname>-obj.conf> file and restart the server. pl. note that once you disable java, ws7 admin server creates <vs>-obj.conf and you need to edit this file and not default obj.conf for your changes to be read by server.
    >
    I have also tried "restart"ing the request like this:
    NameTrans fn="restart" uri="/data"
    ordering is very important here... you need to do this some thing like
    <Object name=default>
    <If not $restarted>
    NameTrans fn=restart uri from=/¨ uri=/foo.
    </If>

Maybe you are looking for

  • MDT 2013: bootstrap.ini not applying username and password for share access

    I customized my bootstrap.ini file to skip the welcome screen, set keyboard locale, and enter a service account username and password for share access.  The welcome screen skip and keyboard locale work beautifully but it's not applying the share user

  • InDesign Export to PDF Problem

    I have InDesign CS4, and today I am having a problem with exporting PDF files. I was using Gill Sans font, and when I exported the file, some of the text turned into little whit boxes. I have no idea why this is happening. Any suggestions? It was jus

  • Getting iTunes Setup Asssistant "Download Album Artwork" Message On Startup

    I have upgraded to version 7. Now everytime I start iTunes I get a 'iTunes Setup Assistant' box pop-up talking about downloading album artwork. I then have to click cancel or OK before iTunes loads. This is very, very irritating. How do I stop this??

  • Re-submitting my podcast feed after it has been deleted dosen't work?

    Hi I had recently submitted a podcast feed for my company. However I made a mistake in asking to have it deleted so I could make some changes. Now having completely revised my understanding of how the feed works, I have now re-submitted my feed: http

  • IPhoto 11 (9.4.2) rebuilding database file

    Hi All iPhoto 11 keeps corrupting the database file resulting in the following: •     deletion of video and photo particulaly those that were imported from my iPhone 5. •     when recent photos and video are deleted as a result of the system recommen