Home > OS >  Linux install apache, how to set up to access the HTML on the server
Linux install apache, how to set up to access the HTML on the server

Time:02-01

RT, I installed Apache in Linux, want to pass the HTTPD access HTML files on the server
But don't know how to modify the HTTPD. Conf path (see below)

SSH client folder on the server (below)


Consult how to configure the path is right?

CodePudding user response:

/root/www2 can,
HTTPD, however, tend to use the WWW - data users to run, so it's best to throw the www2 directory under the directory to the host, such as in/var/WWW, and then give it a set owner and permissions (WWW - data), and, of course, also can directly to/root/www2 change owner and permissions, technically there is no problem, but from the file management point of view, this kind of practice is confusion,

CodePudding user response:


Is this set?
Accessible domain/www2/index. The HTML
Error: who
Because new to Linux, authority should be set right

CodePudding user response:

Who big probability is your directory is not set the default file, such as the index, HTML, index. HTM, index, PHP, etc.,
If there are any DirectoryIndex at first, check the HTTPD configuration file index. The HTML. The related configuration;
Then you also need to check you have this file in your WWW directory,
If you don't ripe for Linux, or Suggestions for Windows, try again after have some knowledge of basic knowledge of Linux server, or your hands will be faced with the Linux + HTTPD two issues,

CodePudding user response:

Do so, thank you for reminding me
  • Related