apache server settings

Asked by:
cagabit / 5 Points
Time:
2013-03-01 11:55 pm EST
Category:
Website Design
Hits:
682
Hi,

How can I config some settings of apache server ? Like httpd.conf file.

I am trying to set general cache settings of the apache server to impose web browser clients a longer cache time.

Thanks,
cg

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

JacobN
Staff
3,713 Points
2013-03-02 12:24 am EST
Hello cg, and thanks for your question.

Because you're on a shared server you don't have direct access to the Apache httpd.conf file. However most settings that you would put in there, can be instead placed in a .htaccess file.

You can read our guide on how to edit your .htaccess file for steps on how to access and modify this file.

For instance the following code will make a web-browser cache jpg images for a year.


ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"



Please let us know if you had any further questions at all.

- Jacob

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}