Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
I have apache running on local machine . I can access a application using https://localhost/app/ but when i use https://ipaddress/app/ it says Forbidden You don't have permission to access /app/ ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Question https://localhost works but https://ipaddress didn't


    I have apache running on local machine . I can access a application using https://localhost/app/

    but when i use https://ipaddress/app/ it says
    Forbidden
    You don't have permission to access /app/ on this server.
    Apache/2.2.15 (Fedora) Server at 192.168.1.5 Port 443
    Any thoughts ? Any apache admins/experts here
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Post your /etc/hosts file...it should look similar to:
    Code:
    # IPv4 and IPv6 localhost aliases
    127.0.0.1	   localhost Icehouse
    Icehouse is an alias to localhost...change that only if you have named your machine.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Exclamation

    Here its - but it don't have anything related to ipaddress(192.168.1.5) . should i edit localhost to reflect my ipaddress ?

    $cat /etc/hosts
    # hostname space added to /etc/hosts by anaconda
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 space
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 space
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. #4
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    have you set up virtual hosts?

  5. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    have you set up virtual hosts?
    Let me tell you what i'm trying to do. I testing ajaxterm for remote access.
    I installed mod_proxy and https SSL on my local machine.I followed the procedure give in Index of /software/ajaxterm

    Now I can access using localhost, but when i try it using ipaddress - It gives access denied message. Any thoughts ?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  6. #6
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Sorry, no thoughts without a look at your apache configuration.

  7. #7
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    Here its.see the attachment file
    Attached Files Attached Files
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  8. #8
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Not much of errors I suppose. Does apache have the permissions to access /usr/share/ajaxterm? Further: does it work when you try to access it directly through http://<host>:8022 ?

  9. #9
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    Quote Originally Posted by Kloschüssel View Post
    Not much of errors I suppose. Does apache have the permissions to access /usr/share/ajaxterm? Further: does it work when you try to access it directly through http://<host>:8022 ?
    Yes.I can access them thought Open Source and Linux Forums and directories owner is root but it's permission 777 but all other files owner is apache.

    drwxrwxrwx 2 root root 4096 2010-08-01 23:44 ajaxterm
    ls -l /usr/share/ajaxterm/
    total 292
    -rwxrwxrwx 1 apache apache 1557 2009-07-24 20:33 ajaxterm.css
    -rwxrwxrwx 1 apache apache 1963 2010-07-25 19:26 ajaxterm.html
    -rwxrwxrwx 1 apache apache 8565 2010-07-24 00:43 ajaxterm.js
    -rwxrwxrwx 1 apache apache 14762 2010-07-28 21:59 ajaxterm.py
    -rwxrwxrwx 2 apache apache 25684 2009-07-24 20:33 ajaxterm.pyc
    -rwxrwxrwx 2 apache apache 25684 2009-07-24 20:33 ajaxterm.pyo
    -rwxrwxrwx 1 apache apache 50292 2009-07-24 20:33 qweb.py
    -rwxrwxrwx 2 apache apache 55096 2009-07-24 20:33 qweb.pyc
    -rwxrwxrwx 2 apache apache 55096 2009-07-24 20:33 qweb.pyo
    -rwxrwxrwx 1 apache apache 4353 2009-07-24 20:33 sarissa_dhtml.js
    -rwxrwxrwx 1 apache apache 27246 2009-07-24 20:33 sarissa.js
    -rwxrwxrwx 1 apache apache 0 2010-07-31 17:22 u
    Do I need to added ipaddress to /etc/hosts? Or change ajaxterm directory owner to apache?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  10. #10
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    List of things
    https://localhost/ajaxterm/ - works
    http : / / localhost:8022 - works

    https://ip-addr/ajaxterm - didn't work
    https://localhost/ajaxterm - didn't work
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •