Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-18-2010, 12:08 AM   #1
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 515

Rep: Reputation: 59
Apache2/Worpress rewriting url to avahi's .local


I've got a home network that uses avahi's magic '.local' name service.

One computer is a server running Debian Testing/Apache2/Wordpress 3.0.x.

All the computers in the house have avahi-compatible service, so reaching the server is easy for computers.

I'd like to use my phone via the wireless lan to use the wordpress installation. The gotcha is, I can enter the ip address and get to the login page. The next page, the ip address is re-written to the avahi host name.

As an example,
1. I enter and I land on the default page.
2. Click on a page of content.
3. URL is rewritten from the numeric address to the avahi, text address.
4. This is a 404 error on the phone. The laptops handle it just fine.

How do I stop apache2 from rewriting?

Last edited by mpapet; 12-18-2010 at 12:10 AM.
Old 12-18-2010, 02:54 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,459

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471

Usually the rewritting stuff is in a .htaccess file in docroot, or in the directory where wordpress is installed.
To stop apache rewritting, set "RewriteEngine off", or just comment out the rewritting stuff. Keep in mind that this can break things and wordperss could stop working.



apache, avahi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Rewriting in htaccess hatchnet Linux - General 7 07-05-2010 05:57 PM
URL rewriting/Centos lonster Linux - Newbie 1 09-28-2009 08:46 AM
URL rewriting for sub-domain scls19fr Linux - Server 6 10-05-2008 11:56 PM
URL Rewriting mrpraveen.p Linux - Newbie 1 06-03-2008 07:07 AM
URL Rewriting getmeontop Linux - Newbie 1 04-02-2008 02:12 AM

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration