Skip to main content

Posts

Showing posts with the label httpd

how to create registered user on mail server

create user to access mail server # useradd -s /sbin/nologin username # passwd username example: # useradd -s /sbin/nologin belogix # passwd belogix the user created can access to mail server account, but cannot access the system using registered username. source: http://www.cyberciti.biz/tips/howto-linux-shell-restricting-access.html

how to enable name-based virtual hosting httpd

here are tutorial to enable name-based virtual hosting httpd # /etc/httpd/conf/httpd.conf locate Section 3 from the configuration file, uncomments few lines or create new lines parameter  NameVirtualHost *:80 <VirtualHost *:80>       ServerName yourfirstwebsite.domain       DocumentRoot "/var/www/html/" </VirtualHost>    <VirtualHost *:80>       ServerName yoursecondwebsite.domain       DocumentRoot "/var/www/html2/" </VirtualHost> save your configuration and please kindly restart your httpd service      

how to enable httpd to access to homedir

here are the notes how to enable accessing homedir for httpd enable access to home user directory # /etc/httpd/conf/httpd.conf locate UserDir section <IfModule mod_userdir.c> # # # UserDir disabled                       (comments this line) # # to allow httpd accessing homedir set selinux by typing this command on terminal # setsebool -P httpd_enable_homedirs 1 # chcon -R -t httpd_sys_content_t ~username/public_html example. #  chcon -R -t httpd_sys_content_t ~belogix/public_html  notes: ~userid directory must have permission 711 ~userid/public_html/ directory must have permission 755 check your setting by open your web browser pointed to http://ipaddrwebserver/~user/