Professional Documents
Culture Documents
WP - Unit III
WP - Unit III
<VirtualHost 192.168.10.108:80>
ServerAdmin webmaster@example1.com
DocumentRoot /var/www/html/example1.com
ServerName www.example1.com
</VirtualHost>
<VirtualHost 192.168.10.109:80>
ServerAdmin admin@example2.com
DocumentRoot /var/www/html/example2.com
ServerName www.example2.com
</VirtualHost>
Dept of COMPUTER APPLICATIONS
06-02-2023 15
Session Number
How to Secure Apache Web Server
• Securing the web server is very important, it means allowing others to see
only the intended information & protecting data and restricting access.
• These are common things that enhance Apache web servers’ security.
vim /etc/httpd/conf/httpd.conf
ServerSignature Off
ServerTokens Prod
[root@amsterdam ~]#httpd –M
perl_module (shared)
php5_module (shared)
proxy_ajp_module (shared)
python_module (shared)
ssl_module (shared)
LimitRequestBody 512000
</Directory>
Dept of COMPUTER APPLICATIONS
06-02-2023 21
Session Number
MIME
• Multipurpose Internet Mail Extensions (MIME) is
an extension of the original Simple Mail Transport
Protocol (SMTP) email protocol.
• It allows users to exchange different kinds of data
files, including audio, video, images and
application programs over email.
• It is an Internet standard that extends the
format of email messages to support text in
character sets other than ASCII, as well as
attachments of audio, video, images, and
application programs.
• Some other web browsers, such as Internet Explorer, try to allow for
misconfigured web servers and applications by guessing what the correct
MIME type should be. This has sheltered many web administrators from
their own errors as, using this method, Internet Explorer will continue to
process content as expected even though the web server is misconfigured,
e.g., it may correctly display an image that is reported to be plain text.
• Serving content using the correct MIME type can also be important for
security reasons; it’s possible for malicious content to affect the user’s
computer by pretending to be a safe type of document when it is in fact
not.
• https://www.tutorialspoint.com/http/http_requests.ht
m - Refer for further Explanation
Dept of COMPUTER APPLICATIONS
06-02-2023 56
Session Number
Format of Requests
• To make a valid Request, the client needs to include 4
things to communicate to the server
– URL
• The resource to access
– Method
• Kind of action the client wants the server to take
– GET – Asks the server to retrieve a resource
– POST - Asks the server to create a new resource
– PUT - Asks the server to edit/update an existing resource
– DELETE - Asks the server to delete a resource
– Headers
• Provide a meta-information about a request
– Body
• Contains the data the client wants to ‘send to/receive from’ the server