host multiple websites on one server apache ubuntu
host multiple websites on one server apache ubuntu
Alibabacloud.com offers a wide variety of articles about host multiple websites on one server apache ubuntu, easily find your host multiple websites on one server apache ubuntu information here online.
The method of this article probably can find the solution on the net, just is not very clear, in this in order to reduce the netizen like I so careless less take a detour, I wrote the next simple and clear process of setting up.
First of all, my server's environment:
Windows 2003 Server
apache_2.0.48
php4.2
(Our server is independent IP, the server does not insta
websites, you can copy and modify the configuration file of the defualt virtual host, this allows you to quickly create multiple websites.
Each Apache Virtual Host has a separate configuration file. These VM configuration files a
In ubuntu, the path of the Apache configuration file is/etc/apache2. In this directory, You can see http. conf, but the file is empty. In ubuntu, Apache configuration is dispersed to various configuration files. The apache2.conf file in this directory is a general configuration file. In this file, you can see the inclu
About Apache:Apache HTTP Server is an outstanding representative of open source software projects, providing web browsing services based on standard HTTP network protocols and maintaining over half of the Web service area over the long term. Apache servers can be run on Linux, Unix, Windows and many other operating system platforms.The main features of Apache:1.
Some small sites if a Web site on a server will be a huge waste of server resources, how to set up multiple sites on a server?We already know, set up a website need HTTP service, after installing Apache, we can put the content of our website into/usr/local/apache2/htdocs/ins
Release date:Updated on:
Affected Systems:Apache Group HTTP Server 2.4.xApache Group HTTP Server 2.2.xDescription:--------------------------------------------------------------------------------Bugtraq id: 58165CVE (CAN) ID: CVE-2012-3499
Apache HTTP Server is an open source HTTP
1. Resolve the DNS of http://www.a.com and http://www.b.com to your server IP.2. Remove the Apache default host configuration file. You also do not want to create 2 virtual host after people can also directly access/var/www/bar;Enter/etc/apache2/sites-enabled/; Delete the 000-default file.3. In the/etc/apache2/sites-en
files, etc.
e) using caching (Mod_cache):
One is based on hard disk caching (Mod_disk_cache), one is based on memory cache (Mod_mem_cache);
Enable caching command: $ sudo a2enmod disk_cache.
Add in
If you want a directory not to be cached, add: cachedisable/Not cached directory
Apache Stress Test (AD)
$ sudo ab–n 20000–c http://www.lgmtest.com/
Description: Send 20,000 requests to www.lgmtest.
Always use WAMP as a development environment, but the work is often encountered in the Wamp no problem but submitted to the server production environment will have some unexpected situation, resulting in the idea of building LNMP environment in this machine, I personally do not know the other people's Virtual machine build server environment is how, But I was a lot of online tutorials pit for a long time, o
Cd/etc/apache2/sites-availableThe recent virtual machine is not bound domain name, so, first use the domain name plus port to create a few sites with1.Vim/etc/apapche2/apapche2.conf# Include List of ports to listen onInclude ports.confFind this, open this. Add listening portVim ports.conf2. Add 8080 ports, or other ports you want3, add the host configuration file, copy a previous configuration of your files, I used to match one, and then directly modi
Environment: Ubuntu Server 14.04 Apache2.41. Virtual Host ConfigurationIn apache2.4, the directory of the virtual host is /etc/apache2/sites-available configured through, by default, Apache has a default virtual host file called 0
modules and use A2dismod to view the modules that have been enabled. If the module you are using is not yet installed, but you do not know the exact name of the module in Ubuntu, you can search with the Apt-get search libapache2-mod command First, find the correct package name, and then install it with the Apt-get installation.3, the Apache Web page file default locationBy default,
different websites5Serveralias 127.0.0.1#aliases6Errorlog"Logs/test1-error.log" #Error log path7Customlog"Logs/test1-access.log"Common#Access Log Path89 Ten#listening on port 80 OneServerAdmin [email protected]#Webmaster Contact Information ADocumentRoot"D:/wamp64/www/test2" #Site Directory -ServerName 127.0.0.2#site domain name, used to identify different websites -Errorlog"Logs/test2-error.log" #Error log path theCustoml
For the installation and deployment of Ubuntu under Apache, refer to the previous articles.
Today, we mainly introduce the deployment of multiple Web projects under one server through Apache.
Idea: Using the same IP, using different ports, to map to different projects
The m
Tags: editor need to set src wordpress Master Networking discuz! ContentXAMPP is a very convenient local Apache + php + MySQL debugging environment, in the local installation test WordPress and other various blogs, forum procedures very convenient. Today we are going to show you how to use XAMPP to install multiple websites locally. In general, we only need to pu
Setting up an FTP server on Ubuntu10.0.4 is very simple: 1. Download and install vsftpd: Open the terminal and enter sudoapt-getinstallvsftpd. At this time, multiple ftp folders are added under the home directory. Installation is complete. 2. Then, start the ftp server: sudo/etc/init. d/vsftpdstart. At this time, a simple ftp
Multiple Domain Names are bound to apache on the CentOS server.
Apache is one of the most popular HTTP server software. It is famous for its fast, reliable (and stable) nature and can be expanded through simple APIs, the Perl/Python interpreter can be compiled to the
2016.5.28 This Saturday afternoon Yin no windThe weekend took a small single, get a business station, in PHP language, so you have to pick up a long time not moving PHP!The key first step is to build the Apache environment, where I use the WAMP integrated environment softwareThis article only talk about me in the construction environment encountered some pits, share to everyone to see, if you are interested in the back of the construction station, ple
Prepare the article:
1, configure the firewall, open 80 ports, 3306 ports
Note: The Ubuntu default installation is not open any firewall, for the security of the server, we recommend that you install the firewall settings, it is recommended to use the Iptables firewall.Whereis iptables #查看系统是否安装防火墙Iptables:/sbin/iptables/usr/share/iptables/usr/share/man/man8/iptables.8.gz #表示已经安装iptablesApt-get Install ip
Apache is one of the most popular HTTP server software, known for its fast, reliable (stable), and with a simple API extension, the Perl/python interpreter can be compiled into the server, completely free, and all the source code is open. If you have your own server or VPS, and do not want to buy expensive control pane
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.