Jump to content

Recommended Posts

Posted

I read through the tutorial, and I'm pretty sure that I followed the steps, but I'm having some problems setting up http://webreports.isaacschlueter.com.

 

I created a folder at [root]/public_html/webreports

Then, set up the domain in CPanel's "Manage Subdomains" section.

I even created a new ftp user, and verified that he could only gain access to that folder.

I uploaded a file called "test.html" to [root]/public_html/webreports

 

When I go to http://webreports.isaacschlueter.com, I see the directory index, and my "test.html" is showing there. But, if I click on the link to the file, I get:

Bad Request

Your browser sent a request that this server could not understand.

 

Invalid URI in request GET /test.html HTTP/1.1

If I go to http://isaacschlueter.com/webreports/test.html then I see

this is a test.
which is correct.

 

Any ideas?

Posted

You do it a bit different than I do. I make the subdomain and it will automatically create dir/subfolder. Then I upload my files and it works. I don't know if that is the issue but it may be worth a shot.

Posted

Thanks, Rob, but that doesn't seem to work either.

 

I deleted the folder, and removed the subdomain.

 

Then, I created the subdomain, and it did indeed create the folder once again. But, the same things happen when I try to test it out.

 

Hmm...

Posted

Aha. Mod_rewrite strikes again. They call it the swiss army knife of URL manipulation, but it seems more like a blowtorch sometimes.

 

I'm using mod_rewrite to create cleaner URLs on http://isaacschlueter.com. Well, the settings in the public_html folder are propogating to the webreports subfolder, and making problems. I'll have to review the documentation on that stuff to have the same functionality in the subdomain. I think that I can get around it by declaring a RewriteBase in the .htaccess file in the subfolder. For now, I put this in my public_html/webreports/.htaccess file and it fixed it:

RewriteEngine Off

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...