-2
votes
1answer
54 views

Apache Redirect to another folder, both within and outside document root [closed]

I've recently set up a home web/media server and having a few difficulties with a few of the settings. It's working fine for serving webpages etc but I've now reorganised the structure of the main ...
0
votes
1answer
68 views

VirtualHost Redirect should work with new RewriteBase

Inside the VirtualHost I got this redirect: RewriteBase / RewriteCond %{REQUEST_URI} wp-content/uploads/([^.]+\.(jpe?g|gif|bmp|png))$ RewriteRule (.*) http://example.org/$1 [R=301,L,NC] So the full ...
0
votes
2answers
81 views

getting started with apache mod_rewrite on a virtual host [duplicate]

hey SO I am attempting to use apache's mod_rewrite module to do some basic rewrting of url on my website so they become a little more seo friendly basically I have a virtual host file that look ...
1
vote
2answers
224 views

Virtual Host Configuration and mod_rewrite - Removing PHP Extension and Adding Forward Slash

On my production server, things are fine: PHP extension removal and trailing slash rules are in place in my .htaccess file. But locally, this isn't working (well, partially, anyway). I'm running ...
0
votes
1answer
75 views

Accessing Apache virtual host on my local machine

I use dyndsn.org and port forwarding to manage access of my local Apache webserver from the Internet. It access my apache htdocs via http://myusername.dyndns.org/somesite. However, I have set an ...
0
votes
1answer
104 views

Trouble configuring virtual host to allow standard wordpress mod_rewrite for permalinks

I'm having a little trouble getting the standard mod_rewrite that wordpress generates in my directorys .htaccess file to work correctly. The server I'm using has a virtual host set up on it by ...
0
votes
1answer
87 views

A subdomain not loading

On my newserver i set up a subdomain patientslife.linf.in. But when i try to set up another subdomain pmr.linf.in it shows the page The connection was reset in Mozilla and No data received in chrome. ...
0
votes
1answer
118 views

Virtual host doesn't read .htaccess

I just created virtual host: <VirtualHost myvirtualhost:80> ServerAdmin webmaster@myvirtualhost ServerName myvirtualhost DocumentRoot /home/myname/sites/public_html <Directory /> ...
0
votes
1answer
394 views

Infinite loop with VirtualDocumentRoot, .htaccess and mod_rewrite

I want to set up robust multiuser development environment with apache2. So I placeed the following file to etc/apache2/sites-available/mydomain.com <virtualhost *:80> ServerName ...
0
votes
1answer
375 views

Wordpress permalinks reach apache 404 not wordpress 404.php or their real respective pages. Redirects or apache config mistake?

I just did clean wordpress install and set up its .htaccess like they say i should do : http://codex.wordpress.org/Using_Permalinks # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
0answers
43 views

Issue related to virtualhost and .htaccess

I know this is probably a stupid question but I'm desperate. I'm working on a server and I have added a virtual host entry like the below one:- <VirtualHost *:80> ServerName ...
0
votes
0answers
218 views

mod_rewrite in .htaccess w/ wildcard virtual hosts - preserving subdomain while funneling requests through index.php

I have a project which utilizes wildcard subdomains to allow requests for www.foo.com, api.foo.com, & admin.foo.com to utilize the same document root. Routing for this project is based initially ...
3
votes
1answer
119 views

Apache2 Basic Auth: user@ip, user2@ip2 - Is this possible?

I am looking at running an external service for clients to use here in my office while clients are working remotely at their office. Assumptions: Both my office IP and clients office IP are static. ...
1
vote
2answers
85 views

htaccess not found

I have installed a Apache 2 (from webmin) server on Debian 6.. I have setup a virtual host db.domain.com on the server which works fine, but .htaccess doesn't work if you get access from the ip ...
1
vote
1answer
612 views

Apache directory access with virtual host

I have a virtual host with a configuration like that. When i'm trying to get into foobar.com/dir providing valid username/password pair i get 403 forbidden page instead of that directory contents. ...
3
votes
3answers
65 views

What's the proper way to setup a client chosen domain name?

In my web app, I'm toying with the idea of giving my user the opportunity to select a subdomain of their choosing, so they could select something like: foobar.myapp.com where foobar is their chosen ...
0
votes
2answers
793 views

Virtual hosts on apache to point domain.com, domain.net, domain.org to all go to domain.com

All of the names currently point to the same web server folder which is correct. That is, the domain.net, domain.org, etc all work without redirecting to the main .com How do I get visits to the .org ...
0
votes
2answers
12k views

Apache Virtual Host with Alias

I have a virtual host running on my local copy of Apache. It has an alias. <VirtualHost 127.0.0.1> ServerName oliverash.me.dev DocumentRoot "/usr/docs/oliverash.me/public" ...
1
vote
1answer
210 views

Pointing Sub domain of one website to sub folder of another website

I have a domain example.com pointing to Linux AWS. I also have demo.example.com which i need to point to /htdocs/c5 of example2.com on Windows Server running XAMPP. My Findings Used A record of ...
0
votes
1answer
454 views

Trying to play with apache virtual hosts, getting access forbidden errors

I'm just messing around with virtual hosts on my XAMPP + Apache install on Windows to make it work so that http://disko.local redirects to a folder in my PC where the project's files are stored. I've ...
1
vote
1answer
169 views

How can I set AccessFileName to be an absolute path?

I know in a VirtualHost definition I can have: AccessFileName .myfilename However, apache does not allow this: AccessFileName /absolute/location/of/.myfilename Is there some sort of a ...
0
votes
1answer
130 views

Does apache2 inherits .htaccess settings for nested virtual host?

I have 2 virtual host: first: /home/user/website second /home/user/website/sub Now I have a .htaccess in website that changes the default 404 Not Found pages. How Can I set .htaccess in ...
0
votes
3answers
7k views

ServerAlias not working

I have a VPS, that I have configured to host multiple websites with name based hosting. It is all good while only using example.com, and www.example.com. It also works with example.net, but when I try ...
2
votes
3answers
10k views

.htaccess is ignored even though VirtualHost has “AllowOverride All”

I'm running a LAMP server on Fedora 13 that's working fine; however, I just added an ".htaccess" file to my current site's docroot folder that is being completely ignored. I've tried half a dozen ...
0
votes
1answer
222 views

Wrong redirection : problem with vhost?

i want to access to http://admin.my-app.com It is supposed to point on web/backend.php, but when i try to access via the URL, it redirects me to the index.php of my application. I don't know what ...
0
votes
3answers
116 views

External site masking our site

Another site, domain.com is mirroring our site. When you go to domain.com is shows up our site, a live copy. I've added .htaccess entries to force all sites accessing their domain to have ...
0
votes
1answer
761 views

Enabling the PHP readfile function in Virtual Host or .htaccess

Is is possible to enable the php readfile function within .htaccess or within the virtual host, the functionality has been disabled by the sys admin who does not want to enable it. I need to enable it ...
2
votes
1answer
2k views

Does Apache look at .htaccess files above a VirtualHost's DocumentRoot?

I am trying to setup a subdomain on a server of mine, where blog.domain.com serves the content from domain.com/blog/ Perhaps this is the wrong way of doing this entirely, but I have setup a ...