Grammar rules: so ... as is acceptable in negative sentences. So, 'I haven't felt so ill as I do now for a long time' is fine because the sentence is negative.
As ... as can be used in affirmative, negative ... whatever you like. So in this case it's also correct.
It would be incorrect to say: John is so tall as his father. (Affirmative sentence, only as ...as is possible here)