Apache :: Wordpress Redirect Breaks Virtualhost
Feb 9, 2014
Running Apache 2.2.22 on Ubuntu 12.04...Here's (in addition to default) my papertower config in sites-available: URL....
When I restart, I get this message: [URL] ....
I'm coming from Apache on Windows and trying to set up the same workflow I had there. Basically, if I placed a folder in /www/papertower/ it would become accessible via directoryname.papertower.dev after adding the host.
I'm having a strange issue getting it going again. Oddly, when I didn't have the wordpress config set up properly and went to site.papertower.dev, it would give me the "failed to connect to database" message. This made me happy, as it meant it was pointing at the right folder. Once I fixed the database config file, however, and go to site.papertower.dev, it thinks for a moment, then goes to www.site.papertower.dev and gives me a "Oops! Google Chrome could not find www.site.papertower.dev".
I double-checked that all the appropriate mods were enabled (especially rewrite), but that hasn't made a difference.
View 4 Replies
ADVERTISEMENT
Oct 8, 2013
What is the proper syntax to perform a redirect within the <VirtualHost:443> section of the httpd.conf file?
The issue is: I have an existing login URL path that has changed slightly. As an example, let's say the old URL is:
"https://www.something.net/item1/item2/login.jsp" but now there's a "new" name for 'item2'.
I only want a user to be automatically redirected to the "new" path, but is ONLY triggered when the "old" login URL path is entered and nothing else.
View 2 Replies
View Related
Jan 5, 2015
I want to permanent redirect some .html page from subdomain to main domain WordPress page,Redirect permanent /cat/FSBO76.URL....
View 1 Replies
View Related
Jun 25, 2014
Last week I have updated the apache from 2.4.6 to 2.4.9 version in Win 2008, 64-bit server. There was no openSSL and update was successful. Later I did the update in QA with openSSL and again the updte was successfully completed. Apache services was running fine and everything looked nice.
When I did the same update in the prd where openSSL is also there, it failed to start the service.
steps to update the apache from 2.4.6 to 2.4.9
----------------------------------------------
1> stop the apache services
2> Take the backup by copying original Apache installation directory and rename it . (eg I:Program Files (x86)Apache Software FoundationApache2.2 to Apache2.2_old)
3> Unzip the latest binaries to the temp directory
4> Copy the following files apachebin , apachemodules to the Apache Inst Directory ( I:Program Files (x86)Apache Software FoundationApache2.2)
5> start the apache service
----------------------------------------------------
QA and PRD both has enabled openSSL but it was prd where we got the issue , and the apache services couldnt be started. We have had to revert the change. Find the error log in the apache directory
--------------------------
[Tue Jun 24 21:12:12.665632 2014] [ssl:emerg] [pid 3336:tid 320] AH02561: Failed to configure certificate
RGWEB58V.brotherdc.eu:443:0, check G:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/server.crt
[Tue Jun 24 21:12:12.665632 2014] [ssl:emerg] [pid 3336:tid 320] SSL Library Error: error:0906D06C:PEM
routines:PEM_read_bio:no start line (Expecting: CERTIFICATE) -- Bad file contents or format - or even just a
forgotten SSLCertificateKeyFile? [Tue Jun 24 21:12:12.665632 2014] [ssl:emerg] [pid 3336:tid 320] SSL Library Error: error:140AD009:SSL
routines:SSL_CTX_use_certificate_file:PEM lib
---------------------------------------
I read somewhere that there is bug in 2.4.9 as this version breaks the openSSL.
Also read on this forum that someone resolved the issu by changing the server certificate from DER to PEM.
View 7 Replies
View Related
Dec 10, 2013
I am really having trouble getting a virtualhost to work for an SSL certificate.. my browser just will not load the page..I have tried several different articles on how to setup a virtualhost and none of them seem to work.
My ssl.conf [URL] .....
*Note: I did purchase an SSL certificate - it is not self signed.
View 13 Replies
View Related
Jan 14, 2013
I have substituted the domain names and DocumentRoot folders for generic titles, so I will refer to those where applicable in the thread as well.
Here is my httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "C:WebServerwww"
</VirtualHost>
<VirtualHost *:80>
[Code] ....
View 1 Replies
View Related
Jun 17, 2013
I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.
I'm using a physical path to test from the public IP as follows:
xxx.xxx.xxx.xxx/~user/test/index.html
View 3 Replies
View Related
Jun 17, 2013
I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.
I'm using a physical path to test from the public IP as follows:
Quote:
http://xxx.xxx.xxx.xxx/~user/test/index.html
Apache v2.2
RHEL6
UserDir configured/running
SuExec configured/running
Below is the relevant vhost block in httpd.conf:
Code:
<VirtualHost *:80>
ServerName test
ServerAlias test
DocumentRoot /home/user/public_html/test
<IfModule mod_fcgid.c>
[Code] .....
I don't have a FQDN as yet, so I just made a entry in /etc/hosts as follows:
Code:
127.0.0.1 test
Here is an excerpt from the Apache error log:
Quote:
[Mon Jun 17 12:02:16 2013] [error] [client xxx.xxx.xxx.xxx] client denied by server configuration: /home/user/public_html/test/index.html
I've checked the firewall and the /etc/hosts.allow- that's not it. I've read the Apache docs and in the vhost block Allow should be evaluated last, and apparently is matching localhost but is not matching my IP.
View 5 Replies
View Related
Oct 11, 2012
Does the apache virtualhost environment lower the web or apache server's security? virtualhost has no security issues.
View 3 Replies
View Related
Aug 13, 2007
I had the sysadmin install SuPHP - so that my upload script would work properly, however now my mod_rewrite is broken.
You can view the problem here: [url]
It is supposed to show the item with id 29, as you can see. However it shows the gallery index (As if /gallery/ was typed in without the view-29)
The .htaccess file:
Code:
#.htaccess
RewriteEngine On
#This will force trailing slashes
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]
#RewriteCond %{REQUEST_URI} !^*(css|png|jpe?g|gif)
RewriteRule ^(.+)/(.+)/?$ $1.php?args=$2 [QSA,L]
RewriteRule ^(.+)$ $1.php [QSA,L,NC]
My very framework relies on the .htaccess working this way... I can turn it off, however I would really rather not - so if you have any idea how I can fix this, please do tell.
And on a related note, is it possible to run PHP under a user and not use cgi_php?
View 14 Replies
View Related
Jun 3, 2013
Description :
- Windows 2008 server
- Apache 2.4 into a DMZ
What I did in HTTPD.CONF file :
comment #Listen 80
UNcomment following lines
-LoadModule proxy_module modules/mod_proxy.so
-LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
-LoadModule proxy_http_module modules/mod_proxy_http.so
-LoadModule rewrite_module modules/mod_rewrite.so
-LoadModule ssl_module modules/mod_ssl.so
-Include conf/extra/httpd-ssl.conf
-LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
I did also create a self sign SSL certificate.
From the WAN, users will connect with such an URL .... This URL can be resolved from DNS.
What i try to do :
The Apache server must be configure to accept connection only from the ip address of the FW
The apache server must act as a Reverse Proxy and redirect the URL to an internal server with URL ....
Of course, external peoples should only see the url they input to connect.
View 2 Replies
View Related
Feb 18, 2013
I have just upgraded my website, and set 301 redirects for all old pages.
But on the old website I used a search engine, and in Google Webmaster there are loads of 404 pages with search queries. They look like this: [URL] ....
Simply redirecting search.php doesn't work, so I guess I need to use a wildcard?
View 2 Replies
View Related
Jan 6, 2015
I'm using a .htaccess file to redirect only example.com/script-dir/index.php (with www and without) to example.com/index.php, but it also redirects example.com/script-dir/index.php?page=faq and other pages.
What should I do to redirect only that single page?
View 2 Replies
View Related
Jul 29, 2013
I'm having trouble getting a Redirect to work. I'm doing a remake of an old site that I did over 10 years ago and I'm going to need to do a lot of redirects once I change over, but I wanted to test it out to make sure I know what I'm doing before I get rid of the old site. My current old site is www.antstuff.net. I will be keeping the same domain when I change, but it's current url naming system is different from the program I use now (Joomla). It's current url syntax goes like: www.antstuff.net/html/ant_farm.html Whereas the remade Joomla site will simply be www.antstuff.net/ant-farms . I don't want to lose all of my inbound links so I'll need to redirect every old page to the new pages right?I wanted to test it first to see if I could get a redirect to work so I added a line to my .htaccess just to try and redirect from one page to another.
Redirect 301 /html/ant_farm.html http://www.antstuff.net/html/queen_ants.html
Nothing happens. It does not redirect to a different page at all.Also, there is a bunch of other crap in my .htaccess file that has built up over the years. Could that mess anything up?
Update: Interesting thing happened. When I went to submit this post, I got an error that said that there is a redirect in the url that I entered, please use the destination url instead. So I removed the line of code from my .htaccess before submitting. Nevertheless, nothing happens when visit that particular page. It's supposed to transfer me to the other page right?
View 2 Replies
View Related
Nov 6, 2014
I have joomla installed on root folder and another joomla installed on subfolder. I want to redirect www to non in subfolder by this code in blog htaccess:
RewriteCond %{HTTP_HOST} ^(www.mydomain.com)?$RewriteRule ^(.*)$ http://mydomain.com/blog/$2 [R=301,L]
View 3 Replies
View Related
Jul 17, 2013
I have a website. I would like to redirect all user/author url to one author/admin...e.g All aurthor links to redirect to one author link
author 1. mysite (dot) com/author/x
author 2. mysite (dot) com/author/y
author 3. mysite (dot) com/author/z
they are about 300
I would like all of them to redirect to author 2. mysite (dot) com/author/admin.
View 3 Replies
View Related
Nov 30, 2013
1.Find .htaccess file in root folder
2.Open .htaccess file
3.Delete all content
4.Type in this code(using your domain ):
<IfModule mod_rewrite.c>RewriteEngine onRewriteBase /RewriteCond %{HTTP_HOST} !^www.example.co.uk$ [NC]RewriteRule ^(.*)$ http://www.example.co.uk/$1 [L,R=301]RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]</IfModule>
View 3 Replies
View Related
May 13, 2013
Issue: Upgraded to Apache 2.4.4 and Tomcat 7.0.33. Accessing the website via HTTPS produces "Object not found" error. The error logs (server,tomcat,apache) show no errors. It was working with Apache 2.2
Server OS: Windows 2008
Apache: version 2.4.4
Tomcat: version 7.033
JRE: version 1.6.0_43
Httpd.conf
View 1 Replies
View Related
Jan 27, 2014
I've been trying to get 301 redirect's WITH masking to work within my htaccess file all day now.
View 1 Replies
View Related
May 6, 2015
I used to have a server which had domain mapping via wordpress... a friend of mine had this up for me and every time I added a new website to the same server/ip-address, I just modified the .htaccess for example:
RewriteCond %{HTTP_HOST} !^www.
RewriteCond %{HTTP_HOST} domain.com
RewriteCond $1 !^domain
RewriteRule (.*) /domain/$1 [L]
Anyway, I no longer have this server and as a result, I have websites that are not being mapped correctly, many domains point to the same ip address.
I have tried to use name-based virtual hosts but it seems as if this is being ignored... I did restart Apache by sudo service apache2 restart
I'd really like to get my websites working again without buying multiple ip-addresses.
View 1 Replies
View Related
Jan 21, 2014
I have installed wamp for editing word press theme every thing is ok but when I create new data base and start configuring my wordpress project file optional message appear when I click submit what should I do ?
View 4 Replies
View Related
Feb 19, 2014
I'm trying to get code to go in a .htaccess file that when a specific IP tries to get a specific page, he/she is redirected to another page.
I have tried many variants of this code below ...
Code:
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^12.345.678.90$
RewriteCond %{REQUEST_URI} /requested-page.html$
RewriteRule .* /redirect-to-this-page.html [R=301,L]
... and nothing works. My webserver gets hosed, and my otherwise working system gives me an error when I try to get a page from it. I am, by the way, using Mac 10.6.8, with Apache 2.2 on both server and client.
What will work??
View 6 Replies
View Related
Oct 31, 2014
I have lan computer running apache2. It doesn't have access to the internet. Is there a way to redirect all website requests to the website located /var/www/ ? So if a user is on the network and trys to goto www.google.com it will redirect them to /var/www/index.html.
View 1 Replies
View Related
Oct 10, 2013
I have a simple app where i am currently downloading some images from the internet. I want to use a local web server to host some of these images when i am not connected to the internet. I installed the apache web server and added the images folder under htdocs - my document root.
Now, i want something like when i continue to query images from www.examplesite.com/xyzimage.png within my app, it should be redirected to localhost/images. Is this possible? I tried doing this
In C:WINDOWSsystem32driversetchosts i added this line URL:...
Also in the httpd.conf i set the foll -
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?examplesite.com$ [NC]
RewriteCond %{REQUEST_URI} !^/examplesite
RewriteRule ^(.*)$ /images/$1 [L]
but it doesnt seem to work.
View 1 Replies
View Related
May 1, 2014
I have a server server.SERVER.com which ajp-redirects /app to port 8009 in httpd.conf as
View 7 Replies
View Related
May 11, 2013
I've not seen an answer for this mass 301 redirect issue specifically.. How to do this...
category/brand URLs:
redirect: /ID-some-brand (e.g. /43-religion-clothing or /26-ichiban) to: /some-brand (e.g. /religion-clothing or /ichiban)
Product URLs:
redirect: /some-category/ID-some-product-name.html (e.g. /mens-sweat-shirts/1543-ichiban-fairly-offensive-sweat-in-grey.html)
to: /some-product-name (e.g. /ichiban-fairly-offensive-sweat-in-grey)
We have 1,090 products and 60+ categories so some form of .htaccess trick would be amazing to know. What I could put in the .htaccess to accomplish this.
View 1 Replies
View Related
Jan 25, 2014
Well, I was trying to use the following in htaccess, but I get the message of redirect loop.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
What I want to do is this: The URL is like somedomain.sub.com/somepage/s1/s2The index.php is accessible from somedomain.sub.com/somepage/I want to send s1/s2 as $_GET['page']
Also, I don't want the URL in the address bar to change, only the url sent to the server should change. This worked well in my localhost, but on webserver (0fees.net), it doesn't work ...
View 1 Replies
View Related
Feb 21, 2013
I have page like that : [URL] ....
I want to permanent redirect it to : [URL] ....
Also needs to redirect all another page have words ( rates ) to index.
View 9 Replies
View Related
Jul 16, 2013
We are redoing our website and we have removed / renamed a few old pages. I was wondering if I can do 301 redirect for removed / renamed pages without having to actually create them? To explain with an example:
On old website : www.domain.com/mypage.php
On new website: www.domain.com/mynewpage.php
I created a 301 redirect in .htaccess redirecting mypage.php to www.domain.com/mynewpage.php without physically creating "mypage.php" file. When I access "www.domain.com/mypage.php", I get a 404 page not found error. When I create a blank "mypage.php", the redirection works fine.
Is it possible to do a 301-redirect without having to create old files ?
View 4 Replies
View Related
Nov 1, 2014
I've just joined the group and new to Apache/php. I have just assembled a website in Joomla/vertumart and called petslovezone.com.au. I want to redirect all the request such as
1. http://xyz.com to https://xyz.com
2. http://www.xyz.com to https://xyz.com
3. xyz.com. to https://xyz.com
4. www.xyz.com to https://xyz.com
now know I have to change .htaccess "RewriteEngine On" section. What would be the best code to do all the above.
Apache Version2.4.10
PHP Version5.4.32
View 2 Replies
View Related
Sep 18, 2014
One site just linked to my website with incorrect URL as URL.. want to correct this by redirecting the URL to URL.... Therefore, I add the following line in my .htaccess, as follows: Redirect 301 /aor/%e2%80%9d URL...
However, this does not work. When I input URL... in Firefox or IE, the browser still said the page not found(404) error.
View 1 Replies
View Related