While looking at one of Laravel's introductory tutorials, the author writes:
Configure the Web site root directory as learnlaravel5/public.
In itself, the root directory for Linux under Apache is set to /var/www/html , while the access directory for Laravel settings is learnlaravel5/public . Directly under the root directory, the access to hit time need to enter a long string, too cumbersome
Make your linux DNS domain name faster-Linux Enterprise Application-Linux server application information. The following is a detailed description. When I was using LINUX, I felt that the host was being resolved when I opened the w
Use the BUFFALO LS-XL network enclosure to open the FTP service, IP is 172.16.0.21On Windows and Linux, you can access ftp://172.16.0.21, now you want to use domain access, easy to remember.Intranet DNSMASQ as DNS server, IP is 172.16.0.1The/etc/dnsmasq.conf configuration is as follows:address=/FTP/172.16. 0.21According to reason, it is now possible to visit ftp://ftp. The result is no, the reality is this:
Winxp OS:
C:/Windows/system32/Drivers/etc/hosts
Add a line like:
127.0.0.1 Hangzhou. localhost
127.0.0.1 Xihu. localhost
Linux OS:
First, you have a top-level domain name with wildcard domain name resolution, such as: domain.com
Next, enable mod_rewrite in httpd. conf.
Add t
Sometimes the free third-level domain name is not available, and the bound top-level domain name can be. The solution is as follows:
Take mmhaida as an Example
First, find the directory cd ~ corresponding to mmhaida ~ Mmhaida found/home/mmhaida6m2m9hxafiadwa/wwwroot
Copy the actual address/home/mmhaida6m2m9hxafiadwa
Today, under the Linux server encountered a strange problem: The network domain name ping results and nslookup results inconsistent, the resolution process is recorded as follows.
Confirm that the/etc/resolv.conf configuration is correct: no problem;
Confirm if additional domain
I have installed php + nginx + mysql on linux.
Then write index. php in the www directory and enter
File.
However, when you enter a domain name in the browser, the following error occurs:
Then find the information. I configured this in vi/etc/hosts.
Then the access still fails.
My domain
If there are two domain names, respectively hello.abc.com and play.abc.com, you need to bind these two domain names toIP is 219.13.34.32 on the server1. First you need to specify the domain name and IP correspondence in the Domain Name
Tag:httpos file sponc linuxef server First, you have a top-level domain name that has a pan-name resolution, for example: domain.com Second, after opening mod_rewrite in httpd.conf, at the end of httpd.conf, add the following: Rewritee Ngine on Rewritemap lowercase int:tolower rewritemap vhost txt:/usr/local/etc/apache/vhost.map RewriteCond ${lowercase:%{
1. Open the conf/server. xml file in the tomcat installation directory.Find
Add the following content (three methods are available for the moment ):First:Timestamp = "true"/>
The above content is to create a WWW folder under the webapps directory of Tomcat as the Home Directory of www.haokan946.cn.
Second:
Suffix = ". txt" pattern = "common" resolvehosts = "false"/>
The above content means to create a WWW folder under the test folder on drive C as the Home Directory of the
WinXP OS:
C:/windows/system32/drivers/etc/hosts
Add a line like:
127.0.0.1 Hangzhou.localhost
127.0.0.1 Xihu.localhost
Linux OS:
First, you have a top-level domain name that has a universal domain name resolution, such as: domain.com
Second, open the mod_rewrite in the httpd
Configure the virtual host domain name under the Linux environmentThe first step:Under the root directory (that is, the root directory)LS (view file)CD into etc directoryFind Hosts FileVI hosts open the Hosts file and edit itAt the bottom of the open file, add:192.168.8.115 domain.com.cnStep Two:cd/usr/local/apache2/conf/Enter the directory belowLS View all files
The hosts is a system file with no extension,The function is to map the host name to the corresponding IP address.When the user executes a ping command (such as Ping www.abc.com), the system will first automatically look for the IP address of the www.abc.com from the hosts file.Once found, the system will immediately ping the corresponding IP, or the system will submit the DNS domain
Experimental requirements:N Primary name server address is ns1.benet.com (173.16.16.5)N from the domain name server address of ns2.benet.com (173.16.16.6)N the following parsing records are provided for the benet.com,accp.com regions. L M ail.benet.com(123.45.67.89), ftp.benet.com (123.45.67.90) L www.benet.com (123.45.67.88),*.benet.com (123.45.67.88) L www
[Linux] install DNS domain name resolution service
Machine IP Address
Machine name
Purpose
10.190.60.5
Hadoop01.ftgov
DNS host
10.190.60.6
Hadoop02.ftgov
1. Configure Nginx Virtual domain name
Example
Virtual Domain www.abcd.com
Edit nginx.conf
Add include vhost/*.conf in server statistics
Create a directory of Vhost, creating a new www.abcd.com.conf file in this directory
Bring in the following copy
server {
Listen 80;
server_name www.abcd.com;
Access_log Logs/www.abcd.com.log;
Location/{
root/usr/local/nginx/htm
after Linux is installed, its default hostname is localhost . 1. Modify the/etc/sysconfig/network configuration fileVi/etc/sysconfig/network modifying hostnameHostname=new-hostname.domainnamenew-hostname Host Name2. Modify the local domain name resolution file/etc/hosts, so that the native application can resolve the new host name.Vi/etc/hostsWill 127.0.0.1 Loca
: This article describes how to configure the nginx virtual domain name in linux. if you are interested in the PHP Tutorial, refer to it. 1. configure the nginx virtual domain name
Example
Virtual Domain
There are three steps you can take to find a solution if you are sure that your network is not a problem:1) Determine the domain name server is set, if not, you can set up Google's public DNS services;# cat/etc/resolv.conf-------------------------------------------------------------------NameServer 8.8.8.8NameServer 8.
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.