Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi have my own website hosted in cpanel (linux). I want to do some testing on website with httpd.conf file modification. but I don't have access on this file. Can any body help me, how I can use virtual host for my website without the server side limitation. I want use redirect map and redirect rule on my website and for I need virtual host modification. Please help me.

share|improve this question

1 Answer 1

(you don't state your level of access to the server and cPanel in your question, so I've assumed that you are a base user or reseller, rather than root or other admin)

You can't edit the httpd configuration files unless you have root access (or similar privedges by other means) on the server. Even then it is generally recommended on systems like cpanel that you leave such configuration alone as cpanel may revert your changes next time it reconfigures itself due to update.

You may be able to put the rewrite directives into .htaccess files though. This can be turned on/off by server operators, so you are not guaranteed to have access to the feature, but if it does work then your changes are very unlikely to be reverted during a system software update. http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html is one example, you should find more if you search for htaccess rewrite or similar.

I've not used cPanel for some time, but I seem to recall there was a section of its interface specifically for URL rewriting (used for hot-link blocking and similar), though this may have been in the root/reseller areas of the interface only. It would be worth scanning through the available options in your control panel and/or asking your host if any such features are enabled for your account.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.