How can I configure apache

Source: Internet
Author: User
Tags to domain
I want to build a server on my computer for remote access. how can I configure apache? 1 & nbsp; I already have a domain name 2 & nbsp; I use a peanut shell for dynamic domain name resolution, and it corresponds to the current ip address of my computer ----------------------------- do I need to configure anything on apache? 「 I want to build a server on my computer and access it remotely. how can I configure apache?
1. I already have a domain name.
2. I use a peanut shell for dynamic domain name resolution, which corresponds to the current ip address of my computer.
//-------------------------------------
What else do I need to configure on apache? Explanations


------ Solution --------------------
After apache is installed, port 80 is enabled and you can directly access it from outside.
------ Solution --------------------
The default value is 80, and there is no need to write ports during access.
------ Solution --------------------
Configure the domain name to specify the ip address of the server that mysql.xxxx.com is resolved. Ip specified to domain name
NameVirtualHost *: 80

DocumentRoot "D:/xxxx /"
ServerName xxxx.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common


DocumentRoot "D:/xxxx/mysql /"
ServerName mysql.xxxx.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common


Baidu apache domain name has many configurations

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.