Results 1 to 4 of 4

Thread: Apache sever password?

  1. #1
    Join Date
    Apr 2007
    Location
    South Carolina
    Beans
    985
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Apache sever password?

    I'm running an Apache server on Unbuntu 22.04
    I did port forwarding so i could access the server remotely & everthing was working fine.
    Then I decided to password protect the server so i used httpasswd & then added some code to the .htacces file.
    Everything seemed to be working fine until I found that 3 out 10 directories gave me an Internal Server Error 500.
    I've checked permissions & there are no differences I could find between the directories that work fine & the ones that give me an error.
    I appreciate any ideas
    Gary

    I wish I knew what I used to know before I knew what I didn't know.

  2. #2
    Join Date
    Mar 2024
    Beans
    4

    Re: Apache sever password?

    Hi Garyed
    Love your signature

    Can you perhaps get a clue in the /var/log/apache2/error.log
    Do you have multiply .htaccess files in these directories?
    Perhaps the apache2.conf conflict with your setup?

  3. #3
    Join Date
    Apr 2007
    Location
    South Carolina
    Beans
    985
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: Apache sever password?

    Quote Originally Posted by biledk View Post
    Hi Garyed
    Love your signature

    Can you perhaps get a clue in the /var/log/apache2/error.log
    Do you have multiply .htaccess files in these directories?
    Perhaps the apache2.conf conflict with your setup?
    Actually that did the trick & thank you very much.
    When I checked the error log it showed the errors were in my .htaccess files in those directories
    They had the rewrite code needed for https that was needed for my webhost when I added SSL certificates to my site.
    I guess since my Apache server is just "http" & I changed the one .htaccess file in my root directory to add a password, it caused a conflict.
    Last edited by garyed; 4 Weeks Ago at 05:40 PM.
    Gary

    I wish I knew what I used to know before I knew what I didn't know.

  4. #4
    Join Date
    Mar 2024
    Beans
    4

    Re: Apache sever password?

    Great to hear Garyed

Bookmarks

Posting Permissions

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