Find the answer to your Linux question:
Results 1 to 2 of 2
hi all, i have installed httpd rpm and i need to configure it. I need to restrict a certain page where client needs to type in username and password to ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    2

    Setup/Config Apache Web Service

    hi all,

    i have installed httpd rpm and i need to configure it. I need to restrict a certain page where client needs to type in username and password to access tat certain page. for that i think i need to configure htaccess?

    if i need a page confidential.html as restricted page.where do i put my confidential.html ? issit /var/www/html ?

    i need to add a user to access this page...
    i need to go /etc/httpd and type htpasswd -c htpasswd username?
    is this the correct procedure?

    oh ya, how do i upload the file confidential.html into the folder?

    hope to hear from you soon. thanks

  2. #2
    Just Joined!
    Join Date
    Jul 2009
    Location
    Brazil
    Posts
    6

    Lightbulb

    Hi,

    You can install httpd-manual, after installed you will access for browser ipaddress/manual
    There are many options about Virtual Domain, htpasswd, restricted page, etc.

    I'm going explain some things.

    Main file /etc/httpd/conf/httpd.conf, you can change:

    "AllowOverride None" for "AllowOverride All" (This options is necessary for use .htaccess file.)

    Folder default is "/var/www/html" but you can change if necessary.

    You should use Virtual Domain, for example:

    NameVirtualHost *:80

    <VirtualHost *:80>
    ServerAdmin webmaster@yourdomain.example.com
    DocumentRoot /var/www/html/site/yourdomaint.example.com
    ServerName yourdomain.example.com
    ErrorLog logs/yourdomain.example.com-error_log
    CustomLog logs/yourdomain.example.com-access_log common
    </VirtualHost>

Posting Permissions

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