Disable Www For Www.subdomain.domain.com

Jul 12, 2007

I created a new cpanel account subdomain.domain.com

Sometimes i goto [url] on my browser, it changes to www.subdomain.domain.com

I want to disable 'www' for some 'xml' script reason.

How do I do that?

View 12 Replies


ADVERTISEMENT

[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

Parked Domain, Subdomain, Addon Domain?

Oct 24, 2008

what are the differences?

View 9 Replies View Related

Disable Awstats For Just One Domain

May 15, 2007

if anybody has been successful in disabling awstats for one domain only? I've seen this method somewhere else but was wondering if any of you guys have tried it here:

----------------------
Append the line,
skipawstats=1 to the file /var/cpanel/users/<username>
----------------------

View 4 Replies View Related

How-to Disable Php Functions Per Domain

Jul 29, 2007

When dealing with the security of your server you will eventually get to the part were you will want to disable some php functions. The only problem on shared hosting is that you cannot disable exec for a domain and enable that function for an other that needs it because of some lame script. Eventually you will get to the part were you will need to enable exec on the entire server because of one site.

There is a solution to this and it’s called suhosin.

Suhosin has a configuration variable called ”suhosin.executor.func.blacklist” which can be used to disable some php functions. The difference between this variable and disable_functions in php.ini is that it can be set for all the sites and then it can be modified for a domain only (it can be overwritten) so you will be able to disable exec on the entire server and enable that function for a single domain.

I will not write here how to install suhosin.

Also, you only need the extension for this so you do not need to patch php and recompile.

IMPORTANT: I have noticed that the suhosin extension 0.9.20 will not work anymore as there are some problems with it. It’s ok as long as we have 0.9.18. Probably the next version of the extension will be fixed to work ok again so remember to use version 0.9.18 for this until the problem is fixed.

Ok, so to use suhosin as the php function blocker we need to comment out disable_functions in php ini (yes, enable all the functions) and then set in php.ini
suhosin.executor.func.blacklist to something like this:

suhosin.executor.func.blacklist = exec, passthru, shell_exec, system, pcntl_exec, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg

You can add as many functions as you like.

After that, all the functions added in suhosin.executor.func.blacklist will not work anymore in php scripts. If you need to enable a function for a domain, let’s say
exec, you will have to edit apache configuration file and add suhosin.executor.func.blacklist without the exec function:

<VirtualHost 127.0.0.1>
ServerAlias www.test.com
ServerAdmin webmaster@test.com
DocumentRoot /home/test/public_html

php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg"

</VirtualHost>

Now exec is disable on the server but it’s enabled on the test domain.

View 0 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

Domain/subdomain

Mar 14, 2007

Can I have a primary domain - www.sample.com - point to another primary domain - www.sample.asn.au - but then have the entry point for that domain be a subdomain - www.ccc.example.com?

If the primary domain is parked somewhere else, doesn't it mean that all the subdomains will be too? Or do I use a 301 on the primary domain to the .asn.au site? But does that then redirect all the subdomains too?

View 3 Replies View Related

Add-on Domain And Subdomain

Jul 19, 2007

Let's say my domain, for which I have shared hosting, is www.mydomain.com

I have also registered the domain www.yourdomain.com

My hosting has cPanel

I add www.yourdomain.com as an add-on domain.

Inside my root folder the folder /public_html/yourdomain/ is created.

When I create the subdomain subdomain.yourdomain.com, the folder /public_html/subdomain/ is created instead of /public_html/yourdomain/subdomain/

Can I assign the /public_html/yourdomain/subdomain/ folder to be the root of subdomain.yourdomain.com?
e.g. I have the file image.jpg at /public_html/yourdomain/subdomain/image.jpg and it's accessed from subdomain.yourdomain.com/image.jpg

Is this possible?

Having a lot of folders directly under /public_html/ would get annoying for me.

View 7 Replies View Related

Parking A Domain Under A Subdomain

Feb 13, 2009

I have 2 domains ie. red.com blue.com. They are both on seperate servers. I want red.com to be a subdomain for blue.com. I went ahead and created an A host for red.blue.com, I then created a virtualhost and everything is working, I can pull up red.blue.com and it pulls up the same data if I were to go to red.com.

Here is my issue. I want to have red.com pull up red.blue.com by default so blue.com gets credit for traffic, I am moving red.com and moving it all into blue.com.
Hopefully this makes sense. Also, I want to make sure nothing breaks my current search engine results.

View 4 Replies View Related

Park Domain On Subdomain

Jun 13, 2008

How can I park a domain on subdomain in PLESK (like cpanel add-on domain)

View 3 Replies View Related

Subdomain Must Go To Domain/folder

Apr 18, 2008

If I have domain.com going to /html/ on my server,

how do I get blog.domain.com to go to /html/blog ?

and I want the url to SHOW as blog.domain.com in the address bar.

seems like it should be simple, but I cant seem to find the answer! is it an htaccess thing, or a cname thing, or both?

View 2 Replies View Related

Subdomain Point To Another IP/domain

Nov 21, 2007

I would like to create a domain which will point to another website/IP.

Something like this:
DomainA.com has subdomain1.DomainA.Com
and subdomain1.DomainA.com point to DomainB.com

So that a file DomainB.com/abc.html
Can be access via subdomain1.DomainA.Com/abc.html

View 13 Replies View Related

Opening A Domain In My Subdomain

Jun 28, 2007

How can I open a domain that is not in my server in one of my subdomaines?

(when we go to my subdomain open the doreign domain and url not redirect)

I have Cpanel + WHM

View 3 Replies View Related

Parking A Subdomain On Another Domain

Sep 22, 2007

I want to park a subdomain on a domain like below.

subdomain.aaaaa.com parked on xxxxx.com

if my visitor opens subdomain.aaaaa.com he will actually see xxxxx.com without know that they are seeing xxxxx.com

I had done this before using cname settings few years ago through cpanel but i dont remember that anymore.

View 3 Replies View Related

Disable/Bypass Suexec Per Vhost Domain

Oct 12, 2007

I am running on;

Plesk versionpsa v8.0.1_build80060613.20 os_CentOS 4.2
Operating systemLinux 2.6.9-023stab033.6-smp
License key numberPLSK.00170782.0006

I need to be able to access cgi between vhost domains. In particular one frequently updated file located 'centrally' in the cgi-bin of one of the vhost domain.

I would like to be able to have other vhost domains be able to access this file but suexec won't let that happen. I have searched around and tried to following;

Created vhost.conf file in the conf directory of one of the domains.

The vhost.conf file contained (with no #):

# <IfModule mod_suexec.c>
# SuexecUserGroup userid psacln
# </IfModule>

I ran;

/usr/local/psa/admin/bin/websrvmng -u --vhost-name=<domain name>

Then reboot.

The result was all the vhosts stopped working. I reset the websvrmng, things returned to normal.

Then I tried updating the httpd.include file adding (with no #);

# <IfModule mod_suexec.c>
# SuexecUserGroup userid psacln
# </IfModule>

Then reboot.

The result was the same, all vhosts stopped working.

Does anyone have an idea how I can achieve this? I know I can disable suexec all together but that wreaked a little havoc with the cgi app when I tried that.

View 2 Replies View Related

Plesk Automation :: Disable Email On Domain Entirely?

Jul 25, 2014

How do we disable email on the domain entirely? The client is hosting email externally - the offered spam filtering is wholely inadequate and we're seeing a few of these happening - to the point I'm considering offering externally hosted email plans anyway - but back to the problem - I need to delete the mailboxes and then disable mail - and then remove the DNS records for webmail etc - but can't seem to find how to turn off locally hosted email for a domain.

View 11 Replies View Related

Mapping An External Domain To A Subdomain?

Apr 22, 2005

I have a website where users can sign up and create a site. They can access their website by typing username.example.com.

However, I would like to add to this the ability to buy a domain name and point it to username.example.com

so example.com/guestbook.html would translate to username.example.com/guestbook.html (external domain and associated user are mapped in the database)

Do I need my own DNS server for this or is there a simpler solution? Also, how should the database lookup be performed for this to work?

View 0 Replies View Related

Configure Domain And Subdomain On Tomcat

May 20, 2009

I have configured Apache+Tomcat on Linux server. I have configured 50+ domains not problem is that sometime when i configure new domain and restart the service and access the url http://domain.com i get following error ----->

HTTP Status 404 - /

type Status report

message /

description The requested resource (/) is not available.

but when i access same url with file like [url]i able to access that url and working fine.
same problem for subdomain also [url]same error but [url]is working so can anyone tell me what is the exact problem and how to solve this problem.

Note:- Other domains are working fine this problem is only with 2-3 domains and subdomain and secondly i have also set DirectoryIndex index.html index.jsp index.php

Please check my server.xml and httpd.conf ------->

<Host name="domain.com" appBase="/home/domain/public_html">
<Alias>www.domain.com</Alias>
<Context path="" reloadable="true" docBase="/home/domain/public_html" debug="1"/>
<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
</Context>
</Host>

<VirtualHost 192.168.1.1:80>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /home/domain/public_html
ServerAdmin webmaster@domain.com

JkMount /*.jsp ajp12
JkMount /*.jsp ajp13

</VirtualHost>

View 0 Replies View Related

Domain Root And Subdomain Structure

Jun 22, 2008

I am a bit confused about domain and sub-domain setup for my website.

I have Wordpress and VBulletin Forum on my website like this:

/www/mywebsite/wordpress
/www/mywebsite/vbulletin

Right now, my domain points to this folder:
[url]

I have a .htaccess file there which redirects it to the wordpress folder i.e.
Redirect permanent /index.php http://www.mywebsite.com/wordpress
DirectoryIndex index.php

But, I would like my domain name point directly to the wordpress folder like this:
[url]

But the problem when i do that is my "VBulletin" forum get's messed up because then:
[url]----------resolves to--------->
[url]

I m thinking to resolve this issues, I will have to add a subdomain for forums like this:
[url]-> [url]

But I am wondering if I do that, won't it fail again, because it will do this:
[url]-----will resolve to----->
[url]

View 5 Replies View Related

Subdomain To Main Domain Moving

Jan 23, 2007

I have a domain name as per my sig. I am also creating a subdomain totally in contrast with that site below. My primary domain has one page on it so i would like to:

a) delete the one page on my primary domain

b) Make the contents of my subdomain my primary domain. e.g my domain is www.info-peep.com, my sub will be example.info-peep.com........i would like to make example.info-peep.com : www.info-peep.com......that make sense, as really the sub will be my main site.

Basically wanting to transfer the contents of my sub to my primary. So when people click info-peep.com, it will be the sub's site. Another thing to note is that i am using RVsitebuilder (WYSIWYG) that my web host provides. Also BEAR IN MIND the WYSIWYG editor does not allow me to move pages (sucks) or to copy the page contents.

View 7 Replies View Related

Apache :: Add Www To Domain Unless It Is A Subdomain Request

Nov 18, 2014

I would like to rewrite mysite.com to www.mysite.com.

However, if the request is a subdomain (i.e. blabla.mysite.com), then it should not rewrite.

I believe this gets me close, but it will not differentiate the subdomains (i.e., blabla.mysite.com).

View 5 Replies View Related

Plesk 11.x / Windows :: How To Disable Https Port On Only One Domain

Feb 14, 2015

My customer using exchange on internal office, the https port conflict with their work. how do I disable https port on their domain?

I am using plesk 11.x and I have about 300 domains on it.

View 1 Replies View Related

Plesk 12.x / Linux :: Enable / Disable Nginx Per Domain

Feb 24, 2015

Is it possible to control if nginx is active on a per domain basis? If so, how do we configure this. If not, how do we disable nginx completely?

View 3 Replies View Related

Htaccess - Moving Site From Subdomain To New Domain

Oct 21, 2007

I have what I think is kind of a unique situation with a site move and Google is not turning up an answer that seems to work.

My site is currently in this format:

www.mydomain.com/site/file.html

And I am "moving" it but also switching from html to php, so the same file would be found at:

site.mydomain.com/file.php

I want to redirect users going to the old pages to their equivalent on the new site, however this is a little bit of a problem because this is a normal subdomain - it is the same directory as before but now there are php versions of the html files.

Right now I have all of the http files redirecting to their php equivilents, but I don't believe this is a desirable solution. Also it creates a problem when people go to www.mydomain.com/site (not indicating a specific file; just the subdir root) because I have www.mydomain.com/site/index.html redirecting to www.mydomain.com/site/index.php.

Quite a mess.

My first option is to put the redirects in the htaccess file on the "old" site. But is this a problem because there are over 500 pages on the site? Does it create a heavy server load because any requests force the server to serve a huge htaccess file?

The next alternative seems the most preferable although I'm not sure how to do it. It seems it could use wildcards so that anyone going to *.html gets directed to *.php or something like that. The only problem is that there are a small number of files that were removed completely and do not have php equivilants (about 5 or 6) and would need to redirect to the index.php in the root

View 14 Replies View Related

Domain On Shared Host - Subdomain On My Server

Nov 30, 2007

I want to host my site on my Dreamhost account for the IP benefit but I need to keep the high bw files on my dedi.

Anyone know how to set that in Dreamhost? And can you point how i will set the subdomain in CPanel on my server?

View 0 Replies View Related

After Remove Subdomain It Work As A Parked Domain

Dec 1, 2007

I just remove subdomain I was use it for time and when I remove it from cpanel it now work as a subdomain for my site.

View 0 Replies View Related

Can Other Hosted Sites Be Access Through Your Domain/subdomain

Sep 10, 2007

I'm using a shared host that provides good service and support, but there's one major issue I discovered recently:

Other sites hosted on their server are accessible through my domains and subdomain. For example:

Account2 on their server can be accessed through:

[url]
[url]

Host says:

"Because everything is Name-based, apache decides what directory is going to be used based upon the name that is provided. However, because the username is valid, it treats it as a vaild URL and redirects it to your site. There is no security issue, as this is just the way apache’s configuration works."

Is it really normal? Does the same happen on all apache servers? I think SE's would treat the other pages as mine, no?

View 3 Replies View Related

Apache :: Subdomain Pointing To Base Domain

Jun 7, 2013

Switched from NGINX to Apache2 and now having challenge getting my subdomain s to work properly. Everything worked fine w/ NGINX - so I don't think this is related to my DNS or hosts file setup.

PROBLEM: Calls to dev.domain-name.org are going to www.domain-name.org.

I have tried many different changes to the conf files... NameVirtualHost changes, VirtualHost changes... I can't count how many times I have restarted Apache now.

Here is my setup:

ports.conf
-----------
Listen 80
Listen 443
NameVirtualHost 96.126.xxx.xxx:443 (xxx'd out for privacy on forum)
NameVirtualHost *:80
within sites-available and activated and linked in sites-enabled:

[Code] .....

View 1 Replies View Related







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