Linux Server Deployment(III)Apache and Perl
It is easy to install apache perl mod on ubuntu with apt-get install. I will try on linux.
It is almost the same configuration on Ubuntu.
1. configure the date
And I realized that the date is wrong on the server. So I try this to change it.
syntax:
# date {mmddhhmiyyyy.ss}
mm-- month
dd----- day
hh----- hour
mi----- minites
yyyy-- year
ss------ seconds
>date 062114342011.10
2. configure apache to auth the username/password
require this module mod_auth
find the configuration file, on my system is default.
>vi /etc/apache2/sites-available/default
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews +Includes
#AllowOverride None
AllowOverride authconfig
Order allow,deny
allow from all
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Directory>
create a configuration file under the directory you want to put auth in.
>vi /var/www/.htaccess
AuthName "sillycat"
AuthType basic
AuthUserFile /etc/apache2/valid.txt
require valid-user
generate the password files
>htpasswd -bc /etc/apache2/valid.txt username1 password1
>htpasswd -b /etc/apache2/valid.txt username2 password2
3. Restart the apache server
>/etc/init.d/apache2 restart
4. Others
We need to put all the .htaccess files to all the soft link directories. We can also benefit from the auth.
references:
http://blog.opendigest.org/show-428-1.html
http://blog.csdn.net/tenfyguo/archive/2011/01/27/6167190.aspx
分享到:
相关推荐
sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this...
### WebLogic Server Deployment部署问题故障排除总结 #### 一、问题描述 在部署过程中遇到的主要问题是WebLogic Server无法正确部署应用。具体表现为服务器选择的是旧版本的应用程序,而不是重新部署的新版本的...
Red Hat Enterprise Linux 6 Deployment Guide Deployment, Configuration and Administration of Red Hat Enterprise Linux 6
本书《Linux Thin Client Networks Design and Deployment》为系统管理员提供了一本快速指南,作者David Richards根据自己在佛罗里达州拉戈市担任系统管理员的经验,分享了在UNIX、Linux和瘦客户端环境下的工作知识...
linux-deployment
Deployment, configuration and administration of Red Hat Enterprise Linux 5
SUSE Linux Enterprise Server 12 SP5 自动化部署脚本,命令行版,图形化版本自动化脚本 openssl passwd -1 -stdin 生成密码 账号root/1234.com 971行出更改(此处是主机的密码$1$1rqHEpcL$B6DVO/fpXQq9DZe3g4nmH.) ...
SUSE Linux Enterprise Server 15 SP3 自动化部署脚本,命令行版,图形化版本自动化脚本 openssl passwd -1 -stdin 生成密码 账号root/1234.com 867行更改(此处是主机的密码$1$1rqHEpcL$B6DVO/fpXQq9DZe3g4nmH.) 443...
The Ubuntu Server Edition, also called Ubuntu Server, offers support for several common configurations, and also simplifies common Linux server deployment processes. With this book as their guide, ...
AndServer is a Web server of Android, support for the deployment of static website, dynamic website, support dynamic interface (Equivalent to Servelt of java ). 中文文档 Features Dynamic website ...
One Light Non-Apache and One mod_perl-Enabled Apache Server Section 12.5. Adding a Proxy Server in httpd Accelerator Mode Section 12.6. The Squid Server and mod_perl Section 12.7. ...
"Small Cell Networks: Deployment, PHY Techniques and Resource Management", Cambridge University Press, New York, USA,
Linux是一套免费使用和自由传播的类Unix操作系统,由林纳斯·托瓦兹于1991年首次发布。 Linux不仅是一个强大的操作系统,也是一个庞大的技术生态系统,涵盖了从服务器到个人电脑的各种应用场景。同时,它的开源特性...
Exchange 2010
IBM WebSphere Application Server 6.1 for Linux 安装步骤 IBM WebSphere Application Server 6.1 是一个功能强大的应用服务器,适用于 Linux 操作系统。本文将详细介绍在 Linux 平台上安装 WebSphere 6.1 的步骤...
We start by introducing Continuous Integration (CI), deployment, and delivery as well as providing an overview of the tools used in CI. You'll then create a web app and see how Git can be used in a CI...
This resource provides detailed guidance on how to design and deploy directory services, including upgrading and restructuring domains, as well as designing and deploying directory services, and more.
"Altiris安装配置学习教程(三)- 安装配置Deployment Server"是针对如何设置和管理Altiris Deployment Server的详细指南。Deployment Server是Altiris的核心组件,它负责执行软件分发、系统迁移、更新和维护任务。 ...