We have set up Apache web server with default configuration.īack up the default nf file on a safe location. On window client open browser and type 192.168.1.1/mysite2/index.htm But you need to configure SELinux contexts, user context is system_u and the type is http_sys_content_t. We will enable it later in this article.ĭefault enabled options are sufficient to provide basic web services, you do not need to make any changes. Httpd_enable_homedirs supports access to files from user home directories, default value is off. Supports read/write/execute access by httpd_t files Used to provide permission for php contentĪllows HTTP services to execute GCI scriptsĮnables communication with controlling terminals for example httpd_enable_ftp_server allow Apache to act as an FTP server, which is out of scope for this article. Most of these options are self explained and relate to interactions with other services. Use following command to check all associated SELinux Booleans with httpd Make a sample html page in both directories Make two directories mysite1 and mysite2 in /var/www/html folder We will use most simple html web page for testing. To get your web server up and running, all you need to do is to transfer the web pages or websites in /var/www/html directory. Until you change the value of DocumentRoot directive in nf file, Apache looks for web pages in default location /var/www/html directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |