Apache config [SOLVED]

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Apache config [SOLVED]

Postby xboxboy » Aug 21st, '15, 14:55

I used task-lamp to install my webserver. I've since installed and built a joomla site at: /var/www/html/thisdirectory

The site works fine. I was polishing it up, and trying to get rid of "index.php" in the urls. So, as tutorials all over the place show, I've done the following:
A: Renamed /var/www/html/thisdirectory/htaccess.txt to /var/www/html/thisdirectory/.htaccess
B: In the joomla back end set both 'search engine friendly url's" and "use url rewriting" to yes

But it's not working as planned: I suspect it's because I've got the site set in a sub directory of the webserver root.
If I go to the web page:
localhost/thisdirectory/index.php/thispage
the page is displayed, but if I go to (using links from the home page which displays fine)
localhost/thisdirectory/thispage
It 404's

I've seen a couple of suggestions:
Edit httpd.conf
Edit .htaccess

I believe that editing httpd.conf is more efficient. This site will be uploaded to a webhost, so editing .htaccess may mean issues when I upload it.
Open to all ideas of how to sort this out.
Last edited by xboxboy on Aug 23rd, '15, 11:37, edited 1 time in total.
xboxboy
 
Posts: 400
Joined: Jun 2nd, '13, 06:41

Re: Apache config

Postby xboxboy » Aug 23rd, '15, 07:55

After some digging around I found how to do it. By adding the following to /etc/httpd/conf/httpd.conf file:

Code: Select all
<Directory /var/www/html/thisdirectory>
    AllowOverride All
    # Allow open access:
    # Require all granted
</Directory>


This is now working: Are their any security repercussions from doing this?
xboxboy
 
Posts: 400
Joined: Jun 2nd, '13, 06:41


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest