0% found this document useful (0 votes)
15 views

Apache Assignment

The document provides instructions on various web server management tasks, including finding virtual host entries, determining Apache and PHP versions, and creating directories and files under a domain. It explains the purpose and uses of the .htaccess file, the differences between addon and parked domains, and the distinction between domain aliases and redirects. Additionally, it covers access restrictions for folders and files, as well as customizing error pages.

Uploaded by

decodeme2002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Apache Assignment

The document provides instructions on various web server management tasks, including finding virtual host entries, determining Apache and PHP versions, and creating directories and files under a domain. It explains the purpose and uses of the .htaccess file, the differences between addon and parked domains, and the distinction between domain aliases and redirects. Additionally, it covers access restrictions for folders and files, as well as customizing error pages.

Uploaded by

decodeme2002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 8

1)Find the Virtual host entry for the domain.

2)How to find apache version, apache module on the server?


3)How to find php version of a server, php modules, php version of a domain (using the info.php)?
4)Create a folder with your name under the domain and add a new file home.html and make that
page as your
Homepage.
5)What is meant by .htaccess file and what are the uses of .htaccess?

The .htaccess file is a configuration file used by Apache web servers to manage and customize
server behavior for specific directories on a website. It allows users to adjust settings without
needing to modify the main server configuration files. Typically placed in the root directory or
subdirectories, the .htaccess file influences how the server responds to requests made to those
directories. Common uses of the .htaccess file include enabling URL rewriting, which
simplifies complex URLs into more user-friendly forms (e.g., changing
example.com/page.php?id=1 to example.com/page/1); setting up redirects (301 for
permanent or 302 for temporary) to guide visitors from old URLs to new ones or enforce HTTPS;
and restricting access to specific parts of the site by IP or by setting up password protection.
Additionally, .htaccess allows for configuring custom error pages for common HTTP errors,
such as 404 for "Page Not Found" or 500 for "Internal Server Error," enhancing the user experience.
It also plays a key role in improving site security by blocking malicious requests, preventing
directory browsing, and protecting against common threats like SQL injection and cross-site
scripting (XSS).

6)Create a folder under the domain and deny access to the folder from all.
7)Under your folder, create files of extension .html, .pdf, .txt and block access to .pdf file only
8)How to add custom 404 error page for your folder?
9)Explain the difference between Addon domain and Parked domain.

An Addon Domain and a Parked Domain are both types of domain configurations in web hosting,
but they serve different purposes. An Addon Domain allows you to host a completely separate
website within your main hosting account. Each Addon domain points to its own unique folder,
where you can upload distinct content and manage it independently, essentially enabling you to run
multiple websites under one hosting plan. For example, if your main domain is example1.com,
you could add example2.com as an Addon domain and host an entirely different site in a
separate directory.

Parked Domain acts as an alias for your primary domain. It doesn’t have its own separate content
or files; instead, it simply redirects visitors to your main website. For instance, if you have
example1.com as your main domain, you could park example2.com, and anyone visiting
example2.com would be redirected to example1.com. While Addon Domains allow you to
create separate websites with different content, Parked Domains are used to point additional domain
names to the same content as the primary domain, often for branding or redirecting purposes.

10) What is the difference between Domain alias and Domain redirect?

A Domain Alias and a Domain Redirect both involve pointing one domain to another, but they
serve different purposes and function in distinct ways. A Domain Alias allows multiple domains to
display the same content without changing the URL in the browser’s address bar. For example, if
example1.com is your primary domain and example2.com is set as a domain alias, visitors to
example2.com will see the same content as example1.com, but the browser will still show
example2.com in the URL bar. This is useful for branding purposes, like having different
country-code domains pointing to the same website.

Domain Redirect sends visitors from one domain to another, changing the URL in the browser’s
address bar. For instance, if oldsite.com is redirected to newsite.com, users visiting
oldsite.com will automatically be taken to newsite.com, and the URL will update
accordingly. A domain redirect is commonly used when a website is rebranded, moved to a new
domain, or consolidated. The key difference is that with a Domain Alias, the alias domain remains
visible in the URL bar, whereas with a Domain Redirect, the target domain shows in the browser.
Additionally, while domain aliases don’t usually impact SEO, domain redirects—especially
permanent (301) redirects—signal to search engines that content has moved permanently,
transferring SEO value to the new domain.

You might also like