Docroot On Subdomain

Jul 24, 2007

I've set up a subdomain on my server. And got the Apache/CentOS welcome message.

But I'm having a bit of trouble with the DocRoot. It says I should put up files in /var/www/html/ - which doesn't make sense - at least it's not working.

Other virtual servers are under /home/domain/public_html ... So I'd like it to go like that... ie /home/subdomain/public_html ...

How do I find out what is the valid DocRoot (it's set to /home/subdomain/public_html but isn't working). I tried so place it under the initial domain /home/domain/public_html/subdomain - which would allow me to acces the subdomain without making corrections to ftp users - but the files I upload just get instantly deleted.

I probably just don't know about some weird redirects or bash_profile stuff.

View 0 Replies


ADVERTISEMENT

Apache :: Docroot Not Working

Feb 27, 2014

I am on the move from Windows 2003 to SLES 11. Bit by bit I get the system up and running and to do, what my windows server is yet doing for me.I have a question about apache's default docroot. I possibly have messed up my installation in some way.

The default docroot is still /srv/www/htdocs according to webmin and yast.I have a virtual host in the directory /srv/intranet.I have installed phpMy Admin in /srv/www/htdocs/phpMyAdmin

Now. My Intranet is working fine - no problem.

Then I have managed to get php running and through doing this, I have found out, that every http request to my apache server ist redirected to my intranet. Therefore I cannot use http://server/phpmyadmin to get to the login page of phpmyadmin - this attempt results in "object not found"

To get to the bottom of it I have created another virtual host pointing directly into phpmyadmin's directory to see wether phpmyadmin ist working at all - and it does!

So I have created an info.php with the usual "phpinfo()" in it and found out, it is only accessable and working if I place it anywhere in the directory of my intranet.

If I place it in /srv/www/htdocs (where I would like it to live...) and try to access it through a browser by typing http://server/info.php it results in "object not found" I have asked Dr. Google lots of questions about it, and I came across quite a few hints and tips and followed them. But so far everything seems to be configured the right way but still apache is misbehaving...

View 2 Replies View Related

Apache :: Modified Excel File In Docroot Not Showing If Its Accessed

Aug 7, 2014

We have few application which serve static information to the users like excel sheet.

We used to place the .xls file in the docroot and it will be accessed using URL

for example, I'll place a file named test.xls and access it through [URL]

Problem here is if i modified the file content and accesed it through [URL] , it is showing the old content. New content is not displaying.

But the same if i did with .txt file , it showing the updated content for .txt file

Dont know why only xls files are not reflecting.

View 2 Replies View Related

Apache :: Modified Excel Sheet In Docroot Is Taking Time To Reflect It

Jul 7, 2014

We have many webservers in our environment, Few webservers serves static contents. In one application, we often change the excel file. Every day or 2 days once we will modified the excel sheet content. File name will be the same, only the content will be changed. We will modify the content of the sheet and upload through FTP to the docroot. After we done this if we access the application URL, its displaying the old content. Its takes time to reflect. sometime with in 3 hours sometimes after a day only reflecting. We are not sure what is the issue. we cleared the cache in browser and tried then also its showing the old content. We are using DNS,network load balancer, proxy between the browser and the webserver.

I tired accessing through FQDN, it showed old content, then i accessed through the LB IP it showed the modifed file. For testing i changed the content again and then accessed. This time even for IP it showed old content. Same i tried with the instance 1 IP and Instance 2 IP. On first time it showing properly but after i cahnged the file content and accessed it showing the old file I tried accesing from a different PC where we havent accessed before, there also it showed old content, SO i feel browser cache is not an issue.

We using Source subnet mask IP persistence in load balancer. I am not sure where the old file is cached actually. Will it be cached in Load balancer or proxy or somewhere in webserver. Just we are placing the file in docroot and accessing it in the URL

View 1 Replies View Related

Apache :: Redirection Page From Subdomain To New Subdomain

May 11, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).

I need to redirect page from subdomain to a new subdomain

Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic and there are no clear rule for redirection (no regex )

So I need to redirect every page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage

doesn't work!

which is the correct syntax ?

Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ? 

View 1 Replies View Related

[cPanel] Subdomain.domain.com Not Working | Www.subdomain.domain.com - Working Ok

Jul 24, 2007

I have problem,
subdomain.domain.com - not working
www.subdomain.domain.com - working

When I creating new subdomain: subdomain2.domain.com - all working ok, I have problem only with this one domain.

I deleting domain.com, deleting dns zones, deleting account, adding domain to other account - all not working for subdomain.domain.com

View 4 Replies View Related

Using A Subdomain For SSL

Oct 17, 2009

When I was with another host, they set it up so one of my subdomains had a static IP address, and I was able to use this for my SSL certificate. My new host (sharkspace) uses CPanel (other host used HELM) but it seems to me like CPanel could do this as well.

Does HELM have some feature that CPanel does not? How do I set this up? They are telling me that they cannot do this for a subdomain, and I cant afford to go buy a wildcard ssl certificate.

They also told me in the past that the only way to redirect a subdomain was using an iframe (when using the DNS Zone Editor was entirely doable) so im not exactly sure their staff has much of a clue going on,

View 14 Replies View Related

Subdomain And IIS

Mar 17, 2008

I want to create a subdomain "exchange.domain.com"

I want this subdomain to be redirected to another site. Possible? how?

the hoster has a catch all set on my domain, domain.com

but how can I add a subdomain and have that subdomain redirect to a different site in IIS 6 (WS2003)?

View 12 Replies View Related

IPs To Subdomain Only Except One

Dec 19, 2007

to block all IPs to a subdomain, except one. I am sure there are many ways to do this but I need the most secure. The domain does not need the IPs blocked, just the sub domain.

View 3 Replies View Related

Using WHM Tools To Set Up A SubDomain

Aug 15, 2005

I am using PayPal's IPN to set up hosting accounts. It works fine if the user is setting up a domain such as name.com, but if they are using a subdomain from the hosting, such as subdomain.hosting.com, it fails to work. Here is the code I am using ...

View 0 Replies View Related

Dyndns With Subdomain?

Jan 6, 2009

Hi, i was wondering how i would be able to use a subdomain to "dyndns". By dyndns i mean how some people use no-ip.org or dyndns.org to hide their IP address. It doesnt only hide and "mask" but it's basically like being on a normal website, where the website actually changes for each page you go to. For example pretend i was using no-ip.org.

Pretend i dont have a domain and i host a website through my VPS

Instead of 123.456.78.9, i used no-ip.or and it was now website.no-ip.org. But it not only masks, if someone goes to index.php. It would be website.no-ip.org/index.php and if someone went to chat.php, their address bar would say website.no-ip.org/chat.php.

But is it possible to do this with a subdomain?

View 5 Replies View Related

Subdomain Creation

Aug 12, 2009

I am trying to create subdomain for my site [url]but it is not working i tried with another name [url]and it worked however it shows subdomain has been created but dont works. I want the [url]but still it is unable to resolve it

I contacted to the host but i think i will get reply late. anyone knows how to resolve this

View 10 Replies View Related

Subdomain Account

Mar 26, 2009

i got host with cpanel, i need create some subdomain accounts for user, a folder tree like this:

/home/user/www/

/home/user/www/subdomain_user1

/home/user/www/subdomain_user2

each user has ftp account, is this safe? can users use php script to access back to root or other subdomain? if yes how to protect?

View 9 Replies View Related

Redirect To Subdomain

Feb 15, 2009

I am trying to do is have a redirect so the files get redirected to a subdomain. So domain.com gets pointed to domain.newdomain.com. However, I want to keep the current URLs, so say I got [url], the below code is just redirecting that url to [url]rather than
[url]

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule (.*) [url]/$1 [R=Permanent]
RewriteCond %{HTTP_HOST} domain.com$
RewriteRule (.*) [url]$1 [R=Permanent]

View 6 Replies View Related

Change DNS To A Subdomain

Jul 12, 2009

Is it possible to change DNS to a subdomain when the domain is hosted in a VPS?

What about for a dedicated server or a shared hosting?

View 8 Replies View Related

Can You Put A Subdomain On A Different Server

Nov 2, 2009

I have a design client who's main site (eg. site.com) is currently hosted, let's say, at some-other-host.com. He wants to add a blog to his site. I could just set up a subdomain for it and be done with it, but for SEO purposes, I prefer to put his blog on my server which is a different IP.

So is there a way to put his blog, as a subdomain, on my server even though the main site is hosted elsewhere? Is there some magic that can be done in the DNS settings (cpanel/WHM) that can point to the files on my server? Or does he have to simply buy another domain for the blog?

View 5 Replies View Related

Hosting A Subdomain Only

May 27, 2009

I have a client that we will call "Domain.com" (example for this question).

Domain.com is a huge company that has their own servers, etc. etc.

However, they want me to host one of their subdomains for them...

[url]

Is this possible to host only that one particular subdomain for domain.com or are they going to need their root domain (domain.com) with me before I am able to host this subdomain.

And, if I can host only the subdomain, how do I do this?

Its just one of those things I have never done before in my years of hosting.

View 3 Replies View Related

Different Subdomain, Different Host

Nov 3, 2009

I currently have a domain example.com If I create a subdomain e.g. a.example.com and b.example.com can I host these subdomains with 2 different hosting comanys

View 3 Replies View Related

SubDomain Host

Jun 6, 2008

I own a domain, www.mysite.com, and wanted to create a subdomain (sub.mysite.com) but wanted to host that sub domain on another host.

In otherwords, mysite.com is on my own dedicated server, but I wanted to host sub.mysite.com on lunarpages, godaddy, or any other host.

I didn't see this ability on Godaddy or Lunarpages which leads me to the question which hosts allow me to use my own subdomain while keeping my main domain on my dedicated server?

View 11 Replies View Related

Resolving Subdomain

Mar 16, 2008

I'm using DirectAdmin as a CP on one of my server & recently I bought a new windows server with plesk as CP.

My DOMAIN is on my 1st server where i'm using Directadmin. I want to resolve my subdomain to my new server.

View 7 Replies View Related

Dns Of Subdomain Loss Sometimes

Apr 26, 2008

i have two servers with whm/cpanel and centos,

i host my domain.com on server-A and create a account with subdomain sub.domain.com on server-A,

some days later,

i move the account website to server-B,

a> i change the domain of sub.domain.com to sub2.domain.com on server-A from whm,

b> and i edit the dns from whm and add a a address record to point to the server-B.

i think my setting is right and the link will run well,

but i am not sure why sometimes people can not link the sub.domain.com,

and they check do the check "ping sub.domain.com",

and they will get the ip of original server-A,

because it assail me for months and i'm not sure how to fix it completely.

View 5 Replies View Related

New Users And Subdomain

Jun 27, 2008

I am a server admin.

Recently, when I set up new user account, there's something strange in FTP.. ( Please check the image for detail )

Besides, all the new set up subdomain cannot use (no matter new or old user) and 404 error occur.

View 2 Replies View Related

Subdomain Email

Jun 9, 2008

how to create subdomain email.

for example, I own abc.com, I want to create me@group1.abc.com, me@group2.abc.com. me@group3.abc.com

View 8 Replies View Related

Subdomain On Different Ip Address

Feb 8, 2008

I have domain, let say it is www.mydom.com which is hosted at one IP. I would like to create subdomain www1.mydom.com and host it on another server with different IP address.

Is it possible?

View 7 Replies View Related

Set Record MX For Subdomain

Apr 6, 2008

we must point out all email services of domain domain.com

we make it under "edit dns" of WHM by change mail to NEW IP

this work fine BUT NOT for subdomain as sub.domain.com

The email sent to @sub.domain.com keep to delivery on old server

ho to set this?

View 7 Replies View Related

How To Point Subdomain On Another VPS

Jul 18, 2008

I have my domain name pointed to a VPS 1. I want its subdomain (for example sub.domain.com) to be pointed to another VPS 2.

So that if someone visits www.domain.com the php files are delivered from VPS1 and if some visits sub.domain.com then php files are delivered from VPS2.

I need to keep my VPS1 rock solid and extremely secure by keeping lowest possible php files and on low load too and want another VPS for online demo and testing (high load and cluttered with php files). I cannot use another domain (for second vps) as the sub.domain.com pages are already indexed on google and changing domain means will have to again reindex them and rank them in google.

View 4 Replies View Related

Create Subdomain In SSH

Jun 14, 2008

How can create a sub domain for one of our accounts in SSH?

we use cPanel.

View 9 Replies View Related

Subdomain Only In Other Host

Dec 24, 2008

i have 1 dedicated server, and 1 shared hosting the domain.com is hosted in dedicated server i want the subdomain sub.domain.com in other host i have try this but not working:

I. the dedicated server have whm and cpanel
in whm i go to DNS Functions --> Edit DNS Zone --> i add sub name , choose A, and enter other ip host

II. the shared hosting only have cpanel
i go to cpanel --> addons domain --> add my domain.com
then go to cpanel again --> Subdomains --> i add sub from domain.com
with above step i just got this when accessing the url [url]:

Great Success!
Apache is working on your cPanel and WHM Server
If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content.
ATTENTION!

View 7 Replies View Related

How Many Subdomain And Hosting

Sep 2, 2008

I'm doing website for my customers then they can get a free subdomain and hosting on my server.

May someone help that I want to know how many hosting can I have on one server, I know this depend on server, but how many that can let server runs propertly.

So how may subdomain that can I create when I'm using managed DNS domain now?

View 6 Replies View Related

Subdomain Or Domain For Ssl?

May 2, 2008

i wanted to create secure.mydomain.com . i can create this either as a separate domain or as a subdomain for mydomain.com.

which one is preferred and why?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved