SteveOH

Tag: apache

Joomla User login errors using Internet Explorer 7.0 (IE7)

by on Aug.16, 2007, under Technology

So registered users on one of my controlled sites simply could not log in if they were using Internet Explorer (6 or 7).  Firefox and Opera work like a charm (of course :-p), but logging in using IE would just result in them being thrown back to the main page, with the error “Unauthorized to see this content”.  So this is what I did to it on my site.  I have a shared hosting account on a FreeBSD Unix hosting it’s own mySQL database.

I changed the configuration.php as follows:

$mosConfig_live_site = ‘http://www.mydomain.com/joomla’; 

to:

$mosConfig_live_site = ‘http://mydomain.com/joomla’; 

And then I changed the htaccess file (htaccess.txt in the root of the joomla installation) by adding the following lines:

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} http://www.mydomain.com/$1 [nc]
rewriterule ^(.*)$ http://mydomain.com [r=301,nc]

Now this alteration may not be 100% correct, but it’s what I got after searching the net for awhile.

Now all requests coming to the server with www in front are changed to the domain name without
it and internet explorer is working lovely.  I’m not sure if it’ll work the other way around, but I wouldn’t think so. Additionally, this of course only works on /Unix systems running with the modwrite option on, and wouldn’t work on a  server (I think, don’t quote me though).

Good luck.

Leave a Comment :, , , , , , , , , more...

FreeBSD Apache HTTP Accept Filter Error

by on Jul.16, 2007, under Technology

When web is starting up in FreeBSD , loads succcessfully and web server functioning properly, but the following warning error occurs:

[warn] (2)No such file or directory:
Failed to enable the ‘httpready’ Accept Filter

The resolution to the above is to a accf_http module, which function is to buffer incoming connections until a certain complete HTTP requests arrive, into FreeBSD kernel by using kernel linker:

kldload accf_http

To permanently load enable HTTP Accept Filter FreeBSD kernel module (accf_http), add the following line into /boot/loader.conf:

accf_http_load=”YES”

Note: The default settings is located in /boot/defaults/loader.cnf. To see the related settings about accf, use:

grep accf /boot/defaults/loader.conf

which will returns:

accf_data_load=”NO” # Wait for data accept filter
accf_http_load=”NO” # Wait for full HTTP request accept filter

2 Comments :, , , , more...

Setting Up Apache on FreeBsd UNIX

by on Jul.16, 2007, under Technology

The purpose of this document is to describe the setup of the secure web application on FreeBsd.

Get the distributions:

# su
# cd /usr/local/src
# wget http://www..org/dist/httpd/httpd-2.2.3.tar.gz

Unpack distributions:

# tar xfz httpd-2.2.3.tar.gz

Now, you would do all this if you didn’t install the PORTS during your initial install. �
Since this is going to be my firewall / gateway, I installed them and only had to do the following:

# cd /usr/ports/apache22

Build And Install Apache:

cd ../apache_2.2.3
./configure –prefix=/usr/local/apache –enable-module=all –enable-shared=max
make
make install

To configure Apache you should edit /usr/local/apache/conf/httpd.conf

Add the following line to the startup to launch Apache at startup:
(for example, into /etc/rc.local file)

/usr/local/apache/bin/apachectl start

1 Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!