Internet and Web Sharing URL Redirect

Hello All,
I have my Mac setup to share my internet connection with people around me. I would like to setup it up to automatically redirect people to a particular webpage when they connect or type in a particular URL. That webpage could be a welcome page or an authentication page. Would anyone know how to set this up on my mac?
Thank You.

What you're asking for is actually a lot harder to do than you might think.
While your Mac is acting as a gateway device for the connected systems, it isn't do much more than passing packets from one side of the network to the other. It doesn't care about the contents of those packets, or what protocol they relate to - a packet comes in, it gets NATted and forwarded on.
In order to do what you want your server has to first identify that the traffic is, indeed, web traffic (you can't redirect other protocols such as mail, chat, etc.), and you then have to verify whether the user has already authenticated or not - you only want to intercept/redirect the users who have not yet authenticated, otherwise even the authenticated users would end up getting redirected to the authentication page, in a circular loop.
The easiest solution is probably to install a proxy server that requires authentication but you still have the issue of configuring the clients to use the proxy (the DHCP server can be tweaked to hand out proxy server information, but the client is not obliged to honor it).

Similar Messages

  • File and web sharing?

    File and web sharing on Mountain Lion is gone?!
    How can I do file and web sharing? Is Apache gone??

    File sharing is in System Preferences > Sharing. http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php- and-phpmyadmin-osx-108-mountain-lion

  • Web dispatcher URL redirect

    Hi ,
    We have web dispatcher which is used for accessing portal and fiori using public url as below .
    https://fiori.xyzcorp.com
    https://portal.xyzcorp.com
    But when they're trying to access via internet portal url goes to https://portal.xyzcorp.com/startPage by default it should route to irj/portal
    Same for Fiori also I'm using the  ICM redirect parameter still can't access
    icm/HTTP/redirect_0 = PREFIX=/, FOR=portal.xyzcorp.com:*, TO=/irj/portal,
    icm/HTTP/redirect_1 = PREFIX=/, FOR=Fiori.xyzcorp.com:*, TO=/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=800&sap-language=EN,
    Could you please share you thoughts?

    Hi Krishna,
    Please go through below doc
    SAP webdispatcher and URL redirect?
    icm/HTTP/redirect_<xx> (SAP Library - SAP Web Dispatcher)
    BR
    Atul

  • Internet and file sharing on Solaris 10

    Hello,
    I have two intel machines at my home. One is running Solaris 10 and other one Windows Xp. Now i want to create a simple LAN ,share internet and files among these two systems. i have joined both machines together and they are connected to each other (confirmed by ping command).
    Please help me out with any reference material on the web or give me steps what should i do.
    Help is encouraged
    Regards,
    SolarisFan

    You should be looking at Samba configuration for the file sharing part ,
    For the internet sharing part it depends on how ur connectivity to the ISP is configured
    If you have a broadband router , configure DHCP server on the router and get the systems to get their IPs from DHCP and you should be able to browse the net provided you have the other required bits such as DNS etc .
    Rgds
    PK

  • Wake on Demand and "Web Sharing"

    Does anyone know if the new Wake on Demand feature is supposed to work with the "web sharing"? It doesn't seem to be working for me. The iMac does wake fine, however, with SSH, file sharing, screen sharing, and printer sharing.

    Hi mcewen. The Wake on Demand feature works with any service being advertised with Bonjour. The caveat with Web Sharing is that it only advertises itself with Bonjour if you've modified one of the default web pages. So all you have to do is go into the Sites folder in your Home directory, and make a change to the index.html file, and then turn off Web Sharing and turn it back on. That should get it to be advertised with Bonjour (you can verify this by going to the Bonjour bookmarks section in Safari to make sure your web page shows up). After that it will support Wake on Demand using Web Sharing.

  • Error: Unable to display RD Web Access + URL redirection

    Dear All ,
    Today I have configured RD web password change.
    I am able to launch the url and change the password successfully, but after changing the password when I am pressing OK button I am getting below error message in IE
    Error: Unable to display RD Web Access
    An unexpected error has occurred that is preventing this page from being displayed correctly.
    Viewing this page in Internet Explorer with the Enhanced Security Configuration enabled can cause such an error.
    Please try loading this page without the Enhanced Security Configuration enabled. If this error continues to be displayed, please contact your administrator.
    Also,
    How do I change the default URL https://10.10.10.25/RDWeb/Pages/en-US/password.aspx to https://passwordchange.test.org
    And,
    In google chrome after pressing OK button it shows nothing just a while blank page
    Regards
    Atul A

    Hi,
    Thanks for posting in Windows Server forum.
    As this thread has been quiet for a while, we will mark it as ‘Answered’ and if there is anything new to update we will let you know by following up this thread.
    BTW,  we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. 
    Thanks for your Support & understanding!
    Regards.
    Dharmesh Solanki
    TechNet Community Support

  • Web service url redirecting problem

    I am working on a form developed by LC Designer that will call a web service from our web server.
    In the WSDL, the soap address location points to www.domain.com/webservice1,
    however our web server will perform load balance by directing all www.domain.com to a new url
    either www1.domain.com or www2.domain.com.
    The result is that nothing is returned after executing the webservice call, I can't catch any error
    after xfa.connectionSet.WebServiceDC.execute(false); just nothing returns after the call.
    I suppose it is the problem that the url has been redirected to a different one.
    However if the soap address location points directly to either www1 or www2, the call returns result alright.
    Is there way or script that I can handle by redirecting a web service to a different URL like that in Adobe Flex?
    That is what I found from the web for Adobe Flex :
    public function onLoginResult(event:ResultEvent):void {
    //Extract the new service endpoint from the login result. 
    var newServiceURL = event.result.serverUrl;
    // Redirect all service operations to the URL received in the login result. 
        serviceName.endpointURI=newServiceURL;
    Best Rgds.

    A helpful poster on the House of Fusion forums pointed me to
    a work-around:
    Apparently ColdFusion just uses the WSDL to create the sub
    objects for the web service call, so as long as there is a service
    port address secified in the WSDL it doesn't matter where the
    actual WSDL file sits. So I just downloaded the WSDL using CFHTTP
    (had to use this article to configure CFHTTP for HTTP Compression:
    http://www.talkingtree.com/blog/index.cfm/2004/7/28/20040729)
    and then I pointed my CF Administrator to the WSDL on my local
    machine. And Presto - I can connect to the web service no problem
    now.
    Only problem is that I have to download the WSDL every time
    there is a change to the webservice, but I can schedule a task that
    downloads the file once a week or so.

  • Airport, Routers and Web Sharing

    Hiya!
    I've a iMac 24" with built in airport and currently have this connecting to a Netgear wireless router and a ISP supplied cable modem....and all is good.
    I've acquired a elderly (but sooo cute) G4 Cube, which is airport-less, which sits in another room.
    My query is, whilst i could buy a 2nd user card for the G4 Cube, could I not redeploy and wire the netgear router directly into the G4 Cube and have this connect wirelessly to the iMac which then would be wired into the cable modem, effectlvely sharing its internet connection.
    I believe the word im looking for is 'wireless bridging' ???
    Am i going to have to fiddle with router settings (yuck) or is this going to be a nice, easy, straightforward MacOS 'click-and-go' solution.
    Message was edited by: Steven Syme

    Yes, I think you could Bridge, but this might suit you if "802.11b" speed off your USB1.1 ports is fast enough...
    http://eshop.macsales.com/Item_XLR8YourMac.cfm?ID=8862&Item=ASUWL167G
    Far better Speed & Range than the Airport card too!

  • I can only use the internet (and web-related apps) when I'm connected to wifi.

    When I try to use the 3G, it says I'm not subscribed to a cellular data plan, which is clearly not true because I'm paying ridiculous amounts of money for it. This means I cannot use the maps feature, which is half the reason I bought the thing. There have also been synching issues with email (which cost me a really good job), and it will not allow me to set up voicemail (when I try to, it says "cannot connect"). My friend that works at Sprint says that the problem is with the phone, and there is nothing they can do at the Sprint store. Help?

    Reset your network settings.
    Settings>General>Reset>Reset network settings
    If that doesn't work contact your carrier.

  • DHCP addressing and web sharing

    I am having problems with websharing...
    I am having difficulty keeping my G5's DHCP address to stay static. I am forwarding the http ports on my lynksys router to 192.168.15.104 right now...but my DHCP will change it in a week or so to 103 or 100. is there any way I can stop this from changing? My external IP is not even changing... just the one for my G5 on the local network.
    Road Runner <--> Lynksys Vonage Router <--> AirPort Extreme <--> Power Mac
    G5 Dual 1 gig Ram    

    William, is Lynksys router the one providing the DHCP addresses? I remember being able to set a specific address to a particuler machine. You first need to find the mac address of the airport extreme card. Open up the Nework Preference Pane and then double click on the airport card. I'm connect via cable so I don't know exactly what you will see but I have an ethernet tab. Click on it and it will show you your Ethernet ID. That is your mac address. Now look at the documentation for the Lynksys router. Somewhere is should mention about connecting a server or routing specific ports to a specific IP address. This is where you will find the information on how to make sure your G5 always gets the same IP address. I know this isn't too specific of information but I hope that it leads you in the right direction.

  • Turning on Web Sharing does not work and fails to load apache web server

    Sort of answering my own question here but hope it will be useful to other people and save them some time.
    After receiving my shiny new imac with os x lion pre-installed, I was a little dismayed and confused when I went to System Preferences -> Internet and Wireless -> Sharing and attempted to check the Web Sharing. Every time I clicked this option I was told Web Sharing was starting but would then repeatedly fail and apache failed to start.
    Looking in the Console I find:
    org.apache.httpd: dyld: Library not loaded: /usr/lib/libpq.5.dylib
    org.apache.httpd: Referenced from: /usr/sbin/httpd
    org.apache.httpd: Reason: image not found
    Entering in the console:
    vim /Library/Logs/DiagnosticReports/httpd_2011-08-06-165030_localhost.crash (date and time bit will vary)
    reveals:
    Process:         httpd [2418]
    Path:            /usr/sbin/httpd
    Identifier:      httpd
    Version:         ??? (???)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [1]
    Date/Time:       2011-08-06 16:50:30.106 +0100
    OS Version:      Mac OS X 10.7 (11A511a)
    Report Version:  9
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries
    Dyld Error Message:
      Library not loaded: /usr/lib/libpq.5.dylib
      Referenced from: /usr/sbin/httpd
      Reason: image not found
    Binary Images:
           0x1022f6000 -        0x102352fef  httpd (??? - ???) <9D63FBFD-DD87-3DD5-AD1A-D8A79FEC3EE8> /usr/sbin/httpd
    "/Library/Logs/DiagnosticReports/httpd_2011-08-06-165030_localhost.crash" 32L, 1469C
    TO FIX THIS ISSUE:
    It appears /usr/lib/libpq.5.dylib does not exist but /usr/lib/libpq.5.3.dylib does.
    Fix by creating a symbolic link from /usr/lib/libpq.5.3.dylib to /usr/lib/libpq.5.dylib
    =
    sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    Going back to System Preferences -> Internet and Wireless -> Sharing clicking Web Sharing a couple of times turns Web Sharing on successfully!
    Going to http://localhost/ displays the "It Works!" page.
    HTH people as it took me a while to find the correct solution online from:
    http://www.azattis.com/2011/07/os-x-lion-postgresql-84-install-problem.html

    Hi there,
    You seemed to have had a similar problem to what I now have and so wondered if you might be able to help me :-)
    I have posted this as a new post as well but if anyone has five mins could they take a look - I would be very grateful. Here you go:
    I am new to all this so I have probably made some simple errors and I hope someone can help me. I will retell what I have done as I haven't a clue what part of what I have done has mucked things up.
    I am really stuck. Web sharing will not start on my iMac running Lion OS X. It did work fine and then I wanted to activate PHP so my test website contact form would work (and send the data on the form throught to my email address.
    Before I did anything I turned on websharing and could view my website from another computer using: http://192.168.1.4/~stewartfergusson/
    I think followed the instructions on this link to activate PHP -http://foundationphp.com/tutorials/php_leopard.php
    I then did a few things in terminal and will paste below what I did:
    Last login: Sun Jan  1 09:01:52 on console
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd/private/etc
    -bash: cd/private/etc: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd prvate
    -bash: cd: prvate: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd private
    -bash: cd: private: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd /private/etc
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo cp php.ini.default php.ini
    WARNING: Improper use of the sudo command could lead to data loss
    or the deletion of important system files. Please double-check your
    typing when using sudo. Type "man sudo" for more information.
    To proceed, enter your password, or type Ctrl-C to abort.
    Password:
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Wed Jan  4 09:03:03 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Thu Jan  5 06:19:15 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo In -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    Password:
    sudo: In: command not found
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    ln: /usr/lib/libpq.5.dylib: File exists
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl -t
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl configtest
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$
    An important point to note is that I now appear to have more than one http.config file and they are located in the following locations:
    1) Macintosh HD/etc/apache2/httpd.conf.default
    2) Macintosh HD/etc/apache2/httpd.conf.default.default
    3) Macintosh HD/etc/apache2/original/httpd.conf
    I edited this file (which one I have not got a clue) and also the php.ini file within Macintosh HD/etc/ using Terminal - the command I used was sudo cp php.ini.default php.ini
    This php.ini file now exists in two locations now as well:
    1) Macintosh HD/etc/php.ini
    2) Macintosh HD/etc/php.ini.default
    I then edited this file by changing the line of code below from:
    514 error_reporting = E_ALL & ~E_NOTICE (I think it said E_DEPRECATED actually) but I am lifting this from the web page in the link above)
    To:
    514 error_reporting = E_ALL
    I then saved this file.
    I then deactivated web sharing in System Preferences and since then have not been able to restart Web Sharing. I click it and it flashes orange for a second then does not start.
    This was all done to activate PHP on my iMac so I can host my own site which has a PHP contact form page.
    Please help I am so out of my depth I am very worried I may have changed things and I am going to forget what I did.
    If you need to know anything then please ask.
    Thank you so much
    sfergusson1
    'JollyoldEngland'

  • Can't get Web Sharing to Work

    I can't seem to get Web Sharing to work internally or externally with the AE. ON the G5 with MacOS 10.5.6, I have Web Sharing turned on under Sharing, Security > Firewall allows all incoming, Network configured as DHCP with IP 10.1.4.
    On the AE, under Internet > Internet Connection I have Using DHCP, Connection Sharing = Share a public IP address. Under DHCP I have a DHCP reservation for my G5 10 10.1.4. Under NAT, I have enable default host at 10.1.4. I currently have NAT Port Mapping Protocol on and have Web Sharing configured (though I have tried with it off).
    Under System Preferences > Sharing and Web Sharing selected, when I select my computer's website I get Safari can't connect to server. Same when I try to access a web page hosted here via dyndns.
    So, there must be something I'm doing to cause this but I sure can't figure it out.
    Any ideas?
    Ed

    Solved. Just did created /var/log/apache2 directory and a chmod 755 on the directory.
    Had to keep digging through discussions to find it.

  • Networking and File Sharing with XP PC's

    I bought a MacBook pro 2.2 ghz last week and have an issue when it wakes from sleep mode. I have a Linksys wrt54g wireless router connected to my home XP machine and the notebook connects to the router fine for internet and for sharing files with the XP machine(noted as MSHOME under network locations on the mac).
    Sometimes when the notebook wakes from sleep it fails to detect MSHOME under Network, and will only show SERVERS and LIBRARY yet, the PC can still see and access files on the Notebook at certain times when this happens. Internet access from the router is never affected.
    I also tested this with an ethernet cable last night and the same thing occurred. At first I thought it was the airport, but now I am not sure.
    Bye the way, also add one Kernel panic to the mix after having it for two days, but haven't had one since.
    I have read that the sleep mode has some strange reactions with these systems. I think it's now noted as an enhanced sleep mode.
    I am scheduled to see a Genius (yeah, right!)at a local store on Saturday and wondering what kind of run around I will get.
    Anyone have any ideas why this is hapening or how I can correct it?
    Santa Rosa MacBook Pro 2.2 ghz   Mac OS X (10.4.10)  
    MacBook Pro 2.2 ghz   Mac OS X (10.4.10)  

    Your problem is not one requiring a Genius but more a user knowledge issue (hey everyone has to start somewhere!! : ) ). Remote Desktop is not a solution for what you want to achieve. The variables you mention are not problem points if you understand networking and hence the reasons why you are having issues.
    For starters, don't rely on network browsing to find resources on a network; least of all from a Mac! Network browsing works much better under Windows (sorry Apple, but it just does).
    Secondly, realise that if you change passwords, it will effect what you can access (for obvious reasons). If typing a username and password is acceptable for you then this is a moot point. If you don't want to type passwords, then make sure you use accounts with matched username/passwords.
    In Finder, select the Go menu, then Connect to Server... This is the sure fire way to ensure you get the drive mapped properly. Type in:
    smb://computername/sharename
    where computername is the netbios name of your Windows PC, and sharename is the folder share name. Create an alias of it somewhere so you don't need to do it again! Don't use an IP address, as if the address changes your alias will fail - use the name and as long as you don't change the PC name you'll be fine.
    Post back here if you're still having issues or something isn't clear and we can throw in some more pointers.

  • Web sharing in os x lion?

    When I go to system preferences>sharing and check the web sharing box, it attempts to start, then a little dash mark shoes up, and web sharing doesn't start. I've tried clicking it continuously, but I always have the same problem. Does anyone have a solution for this? 

    Thanks Zyriab and Thomas A Reed,
    I am now able to start/stop/restart apache server and the "It works!" test page is alive.
    However, the original http://localhost/~username doesn't work this time - A "403 Forbidden" page shows up.
    1. mod_userdir.so is loaded and configuration file /private/etc/apache2/extra/httpd-userdir.conf is well set.
    2. /Users/username/Sites/index.html is there and permission is granted for others (-rw-rw-rw-).
    Still trouble shooting the problem now.

  • DSL Internet and Firewire Windows network at the same time?

    I've got DSL internet via ethernet port on my Macbook and Firewire network with Windows, but it seems they can't work at the same time. If I turn DSL on first than firewire won't work and vice-versa. My guess that's because of the way MacOS X choose which port to use as Windows Sharing. Is there any way to choose manually which port to use?

    I'll try to explain this problem as full as possible.
    I've got DSL modem which is connected to Macbook via Ethernet port and Macbook is the only thing connected to modem. Then I've got Windows XP machine which work as storage. It doesn't have internet connection and I don't want to share my internet connection from Macbook with it. The only thing I want is File Sharing. Everything work fine if only Ethernet or Firewire plugged. The problem is they can't work together. If drag Built-in Ethernet to top then Mac tries to connect to Internet via Ethernet and it tries to do File sharing via Ethernet too. As the result Internet is working and file sharing is not (it sets ip address of file sharing to Ethernet's ip address). If I drag Built-in FireWire to top then Mac tries to connect to Internet via Firewire and it tries to do File sharing via FireWire too. As the result Internet is not working and file sharing is working (it sets ip address of Internet to FireWire's ip address). I think when Mac starts searching for networks according to Network Port configuration list it found first network and stops searching and network that I set on top is working and another is not. Maybe Mac can be only at one network at the same time? That's why I asked is there any way to set ports for Internet and File Sharing manually?

Maybe you are looking for

  • Can't make purchases need help please

    When I try to make a purchase and add my billing info then submit it, it tells me to contact itunes support and won't let me make purchases. Any idea what to do?

  • 9i to 10g Migration, RBO to CBO conversion

    Hi All, We used to have 9.2.0.4.0 DB and our applications are tuned to RBO using 'rule' hints. Recently we migrated to 10gR2 (setting optimizer_hint = 'FIRST_ROWS_1') and we expected that the applications that are using 'rule' hint will be ignored or

  • Having architectural difficulty, need help. advice.

    Here is my situation. I have a program that draws pictures which represent real things. There is a database underneath. The pictures represent things and I need to use the database to discern a lot of the info. I split the logic database tables from

  • DYNPRO_SEND_IN_BACKGROUND dump while processing delivery

    Hello, We have placed a BDC logic to create Invoice in MV50AFZ1 user exit of delivery. BDC session method is being used to create session for Invoice creation using transaction VF01. This isession is later executed in background job using program RSB

  • Table: Only show XML with a certain value?

    I am building a table from an xml file and it is working great if I ask it to show every node. But I only want the row to be added if it matches a particular value in the xml. For example my xml has values for name, rating and enrollment. So somethin