Under Windows, Apache's configuration file is usually only one, which is httpd.conf. But when I installed Apache2 with the Apt-get install apache2 command on Ubuntu Linux, I found that its httpd.conf (located in the/etc/apache2 directory) was empty.
Recently seems to have a lot of Ubuntu brothers in Gaim asked about Apache2 virtual host settings, today is just a bit of time, so I tried to write this HowTo, for your reference.
= = Test Environment = =
* Operating system: Ubuntu 5.10
* Test
Finally, we installed LAMP with apt-get in Debian. Previously, we used CentOS for compilation and installation, which was faster than now, but the memory usage was not optimized, there is no time for further research... After installing yum, it is
Install apache2To execute the install command in terminal:sudo Install apache2Then, we can find the Apache2 have been installed in "/etc/" directory.[Email protected]:cd/etc/Apache2[email protected]:/etc/apache2$ Apache2-Versionserver Version:apache/
Apache2 in Ubuntu is strange-Linux Enterprise Application-Linux server application information. The following is a detailed description. I used to use apache in windows all the time. I feel familiar with it. Now I suddenly switch to linux or ubuntu,
For a long time, Centos is used as the server. Although Ubuntu is used on the desktop, it is not familiar with the Debian series configuration. I recently learned about Raspberry Pi and recorded it here. Debian's Apache2 configuration file is stored
There are two ways to enable mod_rewrite in Ubuntu systems:First: After executing the sudo a2enmod rewrite instruction in the terminal, that is, the Mod_rewrite module is enabled, and the module of the APACHE2 server is enabled in the same way as
Enable the mod_rewrite module for Apache2 on Ubuntu server. The mod_rewrite module is not tested and is used by LinuxIDC.Sudo ln-s/etc/apache2/mod-available/rewrite. load/etc/apache2/mod-enabled/rewrite.
Ubuntu14.14 detailed instructions on how to enable Apache RewriteHow to enable the Apache Rewrite function on Ubuntu this article introduces how to enable the urlrewrite function of apache in the ipvtn system. Enabling Apache urlRewrite on Windows
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.