Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Apache

  • 14-04-2003 1:24pm
    #1
    Closed Accounts Posts: 35


    I'm just getting used to apache web server. I just installed the newest version of it on my server (NT4).

    I can get it to work fine when I type in 127.0.0.1 but not when I try http://localhost nor can I when I type in the actual ip address of my server. Keeps saying that "You are not authorized to view this page".

    I'm fairly confident that I have the permissions set up correctly and I cant see anything wrong with the httpd.conf file.

    I'm using it for an intranet site only so it doesn’t have to get access to the internet.:confused:

    Can anyone help me?


Comments

  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    /me picking my brains


    Gah....I used to know this one.

    Check out the docs about allowing/disallowing access to the server to certain web addresses/domains.

    Also check what the story is with default files in a directory. I.e. if someone just types www.mydomain.com, they should be redirected to an index page, etc.

    If you've set up your own web pages (.jsp or .php files for example), make sure that the server knows what the default file (e.g. index.jsp) is to send users to....

    Sorry I can't help more, I just came out of a 3 hour programming practical and my brain is mush :)


  • Registered Users, Registered Users 2 Posts: 3,889 ✭✭✭cgarvey


    Is the message an IE message? If so check your Security settings in IE) and make sure you are not working offline (File | Work Offline, is not ticked)

    Or is it an Apache message (if so check that the user Apache runs as has access to the files/folder that contains your website


    .cg


  • Closed Accounts Posts: 35 ainran


    Its an IE message alright, and i'm working online and security is minimum. Its ERROR 403


    From what i can gather I'm allowing everyone to read the pages. And I plan on it only working if you type in the ip address. I don't need a DNS for what i'm doing. (me thinks)

    Apachie is configured to return the right file alright, index.html (which is what i have)

    Hope the programming practical went well and thanks anyway.


  • Closed Accounts Posts: 23 dan_an_fear


    Hey,
    what does it return if you do
    http://localhost/index.html ?


  • Registered Users, Registered Users 2 Posts: 3,889 ✭✭✭cgarvey


    A 403 ....
    Double check that the System or whoever Apache runs as has read/browse on that folder and the files within. dan_an_fear's suggestion also, to make sure your DirectoryIndex is properly set up.

    Are you using virtual host configurations? Or are you using any Allow/Deny statements? If so post your httpd.conf

    Hell just post it anyway :)

    .cg


  • Advertisement
  • Closed Accounts Posts: 35 ainran


    http://10.21.X.X/index.html return 403 from any computer also
    http://localhost/index.html returns a 403 but
    http://127.0.0.1/index.html return the page

    I cant put the file up on the boards (almost 1000 lines long and since i cant get apache working i cant host it) but you can take it to be the default file that apache sets up for you when you install it. (i only changed the directory that the website was in to C:\intranet)

    I got my network administrator to check it out and he is baffeled, I'm running pritty much the same config file that the company is using to host the main website and that works fine. It is going to be used just for an intranet but i havent restricted it to local addresses yet.

    reinstalling it didnt help either.


  • Registered Users, Registered Users 2 Posts: 927 ✭✭✭decob


    I had a similar problem once, can't remember exactly what i did to fix it. I know it had to do with one of the following settings

    in your httpd.conf

    #Directory where the server is located
    ServerRoot "C:/FoxServ/Apache"

    # try localhost or try the IP of the machine aswell
    ServerName localhost

    # Directory where the www pages are located
    DocumentRoot "C:/FoxServ/www"

    # This one is just down a bit from DocumentRoot and
    # must be the same as the DocumentRoot
    <Directory "C:/FoxServ/www">

    remember to restart apache after a change, also use another browser as well as IE to test.. stupid IE caching.


  • Closed Accounts Posts: 35 ainran


    Ok, there is something really weird. I just put win IIS on the server (NT4), again the same thing , works for 127.0.0.1 but not for anything else.

    fair enough, so there must be something wrong with the permissions or the connection. I just cant find it....

    So I installed apache on my workstation (hell i never shut down the thing anyway (WIN2000, compaq 2ghz, 40gb, 512mb etc.)) I now get the page when i try localhost or 127.0.0.1 but not when i put in its actual ip address.


  • Closed Accounts Posts: 35 ainran


    STOP THE PRESS ... gottcha ... its was the proxy settings in internet explorer. I didnt check the "bypass proxy for local addresses" box. Panic over.

    Thanks for your help everyone



    p.s. Interesting TIP; NT4 accesses the proxy for localhost but 2000 doesn't


Advertisement