LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

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


Hi,

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 192.168.11.110:100 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
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,910

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

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.

Regards
 
  


Reply

Tags
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 01:14 AM.

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